Skip to content

guhjy/Statistical_Rethinking_with_brms_ggplot2_and_the_tidyverse

 
 

Repository files navigation

Statistical Rethinking with brms, ggplot2, and the tidyverse

DOI

I love McElreath’s Statistical Rethinking text. However, I've come to prefer using Bürkner’s brms package when doing Bayeisn regression in R. It's just spectacular. I also prefer plotting with Wickham's ggplot2, and recently converted to using tidyverse-style syntax (which you might learn about here or here).

So, this project is an attempt to reexpress the code in McElreath’s textbook. His models are re-fit in brms, plots are reproduced or reimagined with ggplot2, and the general data wrangling code now predominantly follows the tidyverse style.

The current version, 1.0.1, marks the addition of a PDF version. There is still room for improvement and constructive criticisms toward that aim are welcome.

This repository contains the code and text behind the Statistical Rethinking with brms, ggplot2, and the tidyverse project.

The project was stitched together using Yihui Xie's bookdown package.

Packages

No packages published

Languages

  • HTML 97.9%
  • CSS 1.1%
  • Other 1.0%