Book-length projects

Statistical Rethinking with brms, ggplot2, and the tidyverse

I love Richard McElreath’s Statistical Rethinking. It’s the introductory textbook to Bayesian statistics I looked a couple years, for. However, I’ve come to prefer using Paul Bürkner’s brms package when doing Bayesian regression in R. So, this project is an attempt to re-express the code in McElreath’s textbook. All the models are re-fit in brms. In addition, I also show how to wrangle the data in the tidyverse style and make the plots with ggplot2.

recoding Introduction to Mediation, Moderation, and Conditional Process Analysis

Andrew Hayes’s Introduction to Mediation, Moderation, and Conditional Process Analysis, the second edition of which just came out, has become a staple in social science graduate education. Both editions of his text have been from a frequentist OLS perspective. This project is an effort to connect his work with the Bayesian paradigm. Herein I refit his models with my favorite R package for Bayesian regression, Bürkner’s brms. I also show how to wrangle the data in the tidyverse style and make the plots with ggplot2.