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
openintropackageFit a model that uses
pf_expression_controlto 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_moneyandpf_expression_controlas exposures andhf_scoreas outcome.Use a linear regression model (and scatter plot) with
ef_moneyas exposure andpf_expression_controlas outcome, to study whetheref_moneyhas an association withpf_expression_controlas well. This might validate our finding thatef_moneyis a confounder betweenpf_expression_controlas exposure andhf_scoreas outcome from Q10.