View the Project on GitHub MJAlexander/bayesian-demography-lecture
Here are some materials for a guest lecture given on Bayesian Demography as part of the ‘Advanced Demographic Methods’ (DEMG7310 / POP514) course.
If you would like to follow along with the coded examples, as well as having R and RStudio installed, you will need to install the following packages:
tidyverse
rstan
rstanarm
tidybayes
janitor
rcbayes
The rstan
package is probably the most important but could be annoying to install. If you have issues, see detailed instructions here: https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started
pdf version is here.
There are three labs written in Quarto files. (in the labs
folder). The data and models required to compile the Quarto documents are also in their respective folders. A pdf version of each lab is listed below.
Here is an optional exercise based on the Gompertz lab.
geom_point
with geom_errorbar
would be suitable here)