The tasks based on exercises from Reka:
Create a workflowr project
Create a Markdown file in the analyis folder and solve the statistics exercises.
Add the following code to the end of the Rmd file and set
eval=TRUE
(see the code in the assignment.Rmd file):Build your webpage with links on the index.html
As the result of the assignment, send me a zip folder
Statistics exercises:
Use the hfi dataset from the
openintro
packageFit a model that uses
pf_expression_control
to predicthf_score
, or the total human freedom score.Again add region to the model. Compare the slope and \(R^2\) with the model from Q8.
Finally fit a model with
ef_money
andpf_expression_control
as exposures andhf_score
as outcome.Use a linear regression model (and scatter plot) with
ef_money
as exposure andpf_expression_control
as outcome, to study whetheref_money
has an association withpf_expression_control
as well. This might validate our finding thatef_money
is a confounder betweenpf_expression_control
as exposure andhf_score
as outcome from Q10.