Econometrics with Ledia — four guided data labs

All datasets are deliberately synthetic. They contain no personal data and do not establish real-world causal validity.

1. Extract the zip so solutions.R and all four CSV files remain in the same folder.
2. Open R and run:
   source(file.choose(), chdir = TRUE)
3. Choose solutions.R from the extracted folder. The command temporarily uses that folder while the script reads its companion datasets.

The script uses base R only. No extra package installation is needed.
Try the questions on the course's Data labs page before reading the printed solutions.

ols.csv: fit a line, check residual identities and change regressor units.
interactions.csv: two group lines, conditional comparisons and slope-sum uncertainty.
partialling-out.csv: short/full regressions and the FWL coefficient identity.
measurement-iv.csv: simulated measurement error, reliability and a valid constructed instrument. x_star is included only as simulation truth.
