A crash course in Bayesian inference

CLE Retreat 2023

What you can expect from this workshop:

Intended audience:

Pre-workshop set-up

To be able to run the code we’ll use, please follow the set-up instructions here, and make sure everything is running before the workshop begins.

To check whether CmdStan has been correctly installed, you can run the following code in RStudio’s console:

library(cmdstanr)
file <- file.path(cmdstan_path(), "examples", "bernoulli", "bernoulli.stan")
mod  <- cmdstan_model(file)

If running this code produces no errors and you end up with an object mod in your Environment pane, then you’re good to go!

Also make sure the following packages are installed:

  • tidyverse
  • brms
  • bayesplot
  • knitr

Thanks to n loewen for help coming up with the workshop name :)

Copyright Elizabeth Pankratz 2023.