GitPedia

BDA R demos

Bayesian Data Analysis demos for R

From avehtari·Updated June 3, 2026·View on GitHub·

The [BDA_R_demos repository](https://github.com/avehtari/BDA_R_demos) contains some R demos and additional notes for the book [Bayesian Data Analysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3)](http://www.stat.columbia.edu/~gelman/book/). See also [Bayesian Data Analysis course material](https://github.com/avehtari/BDA_course_Aalto). The project is written primarily in HTML, distributed under the BSD 3-Clause "New" or "Revised" License license, first published in 2016. Key topics include: bayesian, bayesian-data-analysis, bayesian-inference, mcmc, monte-carlo.

Bayesian Data Analysis R Demos

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)

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from avehtari/BDA_R_demos via the GitHub API.Last fetched: 6/18/2026