The BDA_R_demos repository contains some R demos and additional notes for the book Bayesian Data Analysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3). See also Bayesian Data Analysis course material.

Currently there are demos for BDA3 Chapters 2, 3, 4, 5, 6, 10, 11 and 12. Furthermore there are demos for CmdStanR, RStan RStanARM.

The initial demos were originally written for Matlab by Aki Vehtari and translated to R by Markus Paasiniemi. Recently more demos have been added for CmdStanR, RStan and RStanARM. Unless otherwise specified in specific files all code licensed under BSD-3 and all text, slides and figures licensed under CC-BY-NC 4.0.

The corresponding Python demos and the corresponding Matlab/Octave demos.

See also Model Selection tutorial.

List of demos (not including rstan and rstanarm demos)