APPLIED INTRODUCTION TO BAYESIAN DATA ANALYSIS
Copenhagen Graduate School of Social Sciences
January 5-7, 2015



Please note: This page is archived from the last time I taught this course.
For materials for current courses, please go to my teaching page.


Welcome to the website for my 3-day workshop on Bayesian Data Analysis at the University of Copenhagen, January 5-7, 2015. This page contains materials for workshop participants and additional resources for Bayesian data analysis.

Workshop outline

The outline for this workshop is available here.

Setup & before we meet

Before our first meeting, please complete a couple of steps to prepare for the workshop:
  1. Complete my brief survey to give me a rough idea of the background of all workshop participants. Please email your answers by January 1.
  2. Have a look at my "(very basic) R tutorial" and install R and RStudio on your computer.
  3. Have a look at sections 1-3 of my tutorial "Using JAGS via R" and install JAGS and the packages mentioned in section 3 on your computer.
We will spend the last part of the workshop on Monday to work through the remainder of the "Using JAGS via R" tutorial. Please bring your laptop computers (if available) to the workshop. If you run into problems installing any of the software packages mentioned above, I'll be happy to assist you during the first day of the workshop.

Tutorials

The tutorials below contain information and code to .
  1. A (very basic) R tutorial
  2. Using JAGS via R
  3. Presenting Bayesian model output

Slides and source code

Slides for each workshop unit and the source code I used to create them are posted below. Slides are posted as .pdf files, and the R code for all applications is posted in .R files.

Modeling exercises

This file provides some (voluntary) exercises for all topics discussed in the workshop.

Modeling examples

The R scripts below contain fully working examples of Bayesian regression models for different types of outcome variables. All models are fit using JAGS.

Diagnostics

The bottom of this script shows a variety of ways to obtain diagnostics (traceplots, density plots, BGR, etc.) of JAGS/MCMC objects in R using the coda, superdiag, ggplotmcmc, and mcmcplots packages.

Model presentation

Questions? E-mail me.