Chapter 8 Appendix — Data and build notes
8.1 ESS subset
- File:
ess.csv - Countries: GB, DE, FR
- For variable descriptions, open the bundled HTML codebook (
ESS-Codebook.html) in your browser. - Common missing-value codes: 66/77/88/99 or blank strings. All chapters use
na_if()to drop them before analysis.
8.2 Extending the material
- Swap dependent variables:
pplhlp(people helpful) orpplfair(people fair) can replaceppltrstwithout changing structure. - Add country-level covariates by merging lookups (e.g., GDP or media freedom indices) before running multilevel models.
- Convert interaction plots to
ggplotlyfor live demos if desired.
Course assistant
Searches the book — no answers are made up