Statistical rethinking with brms, ggplot2, and the tidyverse: Second edition

Author

Dr. Joscelin Rocha-Hidalgo

Published

January 26, 2023

Buy me a coffeeBuy me a coffee


By A Solomon Kurz

Excerpt from e-book: This ebook is based on the second edition of Richard McElreath’s (2020a) text, Statistical rethinking: A Bayesian course with examples in R and Stan. My contributions show how to fit the models he covered with Paul Bürkner’s brms package (Bürkner, 2017, 2018, 2020c), which makes it easy to fit Bayesian regression models in R (R Core Team, 2020) using Hamiltonian Monte Carlo. I also prefer plotting and data wrangling with the packages from the tidyverse (Wickham, 2019; Wickham et al., 2019). So we’ll be using those methods, too.

  1. Link to ebook: https://bookdown.org/content/4857/

Density plot comparing two normal prior distributions for α. One distribution, in blue, is labeled "α ~ Normal(0, 10)" and is centered near zero with a wide spread. The other distribution, in orange, is labeled "α ~ Normal(3, 0.5)" and is more concentrated around a mean of 3. The x-axis is labeled mean number of tools and ranges from 0 to 100.

Back to top