A guide to MrP (Multilevel Regression and Post-Stratification) guides in R:
- An Introduction to Mulitilevel Regression and Post-Stratification for Estimation Constituency Opinion, Chris Hanretty. Replication code and data.
- Methods-based peer-reviewed paper
- Estimating State Public Opinion with Multi-level Regression and Poststratification using R, Jonathan Kastellec, Jeffrey Lax, and Justin Phillips. Link includes PDF of paper and replication data.
- I found this one to be a really nice walk through of intuition along with the code, though it uses slightly older code (but still functions!)
- MrP Illustration, Lucas Leemann and Fabio Wasserfallen
- A slightly different coding approach to MrP, easy and intuitive to follow
- MRP Using brms and tidybayes, Tim Mastny
- Uses different packages than most examples I’ve found
- dgo: Dynamic Estimation of Group-Level Opinion, James Dunham
- An R package with a straightforward set of functions
- AAPOR Short Course on MRP, Doug Rivers
- Detailed and well-documented code
- Multilevel Regression with Poststratification, Rob Williams
- Another very intuitive walk through of both the statistics and procedure, based on the Kastellec et al. tutorial
- MRP in RStanarm, Lauren Kennedy and Jonah Gabry
- A different programming approach to MrP, using the RStanarm package