alexpkeil1 / BayesBootcamp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BayesBootcamp

Programs and exercises to accompany the EPICOH 2021 workshop "The Brothers Bayes' Boisterous Bootcamp." Download the files contained in this repository by clicking on the green "Code" button and scroll down to "Download Zip" (see image below). The code will be easiest to run if you unzip the downloaded file in the default "Downloads" folder of your computer. .

The unzipped folder should include the following scripts in the "R" folder (R language):

  • bayes_shortcourse_simdata.R: used by all other programs to simulate a simple dataset
  • bayes_shortcourse_ex1_indpriors.R: Bayesian linear regression with independent coefficient priors
  • bayes_shortcourse_ex2_hierarchical.R: Bayesian linear regression with hierarchical “shared” coefficient priors
  • bayes_shortcourse_ex3_mixture.R: Bayesian linear regression with coefficient mixture priors
  • bayes_shortcourse_ex4_bma_gcomp.R: Bayesian linear regression and g-computation with Bayesian model averaging/selection (BMA) priors

The group exercises can be found in "BBB_exercises.docx"

You must have a recent (2021) version of R installed on your computer as well as JAGS. The R2Jags R package is also needed, and you should ensure this package works by following one of the examples at the bottom of the help file that you reach by entering ?jags into the R console. We cannot provide technical assistance on software/package installation.

About

License:GNU General Public License v3.0


Languages

Language:R 100.0%