http://xcelab.net/rm/statistical-rethinking/ (Supplementary material)
McElreath, R. (2016). Statistical rethinking: A bayesian course with examples in R and Stan. Boca Raton: CRC Press.