Notes on Statistical Rethinking by R McElreath
The code examples require the installation of several R packages:
install.packages("rstan")
install.packages(c("coda", "mvtnorm", "devtools", "dagitty"))
library(devtools)
devtools::install_github("rmcelreath/rethinking")