πŸ“¦ ae04-multiple-regression-part-1

From simple to multiple regression

Author

Eduard (Eddie) Bukin

Five exercises taking you from a simple-regression recap through multiple regression, linearity diagnostics, a hedonic price model and omitted variable bias. Belongs to Simple regression Β· Multiple regression.

⬇ Download ae04-multiple-regression-part-1.zip

Unzip it, then open the .Rproj file in RStudio. Every path inside the exercises is relative to that project, so the data will load without edits.

Uses datasets that ship with the alr4 and wooldridge packages, so there is no data/ folder β€” install those packages instead.

What is inside

ExercisesRead online
ae04-00-simple-regression-from-slides-HW.R Plain R script: reproduce the entire simple-regression analysis from the slides. No rendered page β€” open it in RStudio. source
ae04-01-MLR.Rmd Fit and interpret a model with several predictors. rendered source
ae04-02-MLR-linearity.Rmd Residual plots, log transformations, interaction terms and marginal effects. rendered source
ae04-03-hedonic-land-prices-HW.Rmd Homework: a hedonic land price model from start to finish. rendered source
ae04-04-slides-ovb-HW.Rmd Homework: reproduce the omitted-variable-bias examples shown in the lecture. rendered source
Project
ae04-multiple-regression-part-1.Rproj RStudio project file β€” open this first.