Create a workflowr project
Set it up so it works with github.
Create a Markdown file in the analyis folder and solve the exercises from Rajbir.
Add the following code to the end of the Rmd file and set eval=TRUE
(see the code in the assignment.Rmd file):
Publish and push the file to github.
Set up the github pages with the repository.
As the result of the assignment, send us the link of your webpage.
Use the hfi dataset from the openintro
package
Fit a new model that uses pf_expression_control
to predict hf_score
, or the total human freedom score.
Again add region to the model from Q4. Compare the slope and \(R^2\) with the model from Q4.
Finally fit a model with ef_money
and pf_expression_control
as exposures and hf_score
as outcome. Compare the slope and \(R^2\) from the models from Q1. Could ef_money
be a confounder?
Use a linear regression model (and scatter plot) with ef_money
as exposure and pf_expression_control
as outcome, to study whether ef_money
has an association with pf_expression_control
as well. This might validate our finding that ef_money
is a confounder between pf_expression_control
as exposure and hf_score
as outcome from Q6.