library(ggplot2)
library(tidyr)
library(dplyr)
library(arm)
library(bayesplot)
library(rstanarm)
library(purrr)
library(tidybayes)Preparing to run the examples
To be able to run the code below locally, please do the following:
- Install or update to the latest version of RStudio. The tutorial code will be contained in a Quarto markdown document. Quarto (which powers this very website!) is an updated version of the venerable RMarkdown, and the newest versions of RStudio include Quarto support by default. 
- Set up your R/RStudio installation to be able to load the following packages using the following code: 
If you are not sure if you have these installed or want to update to the latest versions, please paste this command into a running R session to download and install:
install.packages(c("ggplot2","tidyr","dplyr","bayesplot","rstanarm","purrr","tidybayes"))Citation
BibTeX citation:
@online{zelner,
  author = {Zelner, Jon},
  url = {https://zelnotes.io/posts/examples.html},
  langid = {en}
}
For attribution, please cite this work as:
Zelner, Jon. n.d. https://zelnotes.io/posts/examples.html.