I’ve been trying to replicate (nearly) all the models in Richard McElreath’s Statistical Rethinking (2nd ed.) book using
ggplot2. This is work in progress.
Rmarkdown notebooks can be viewed here:
All data and code can be downloaded from Github: https://github.com/vincentarelbundock/rethinking2
I make no claim to expertise. This project was started as a way to learn Stan and Bayesian statistics. If you find bad code or inacurate content, please send me an email or file an issue on Github.