Code
Selecting priors
Bayesian theory
Bayesian computation
- Gibbs – toy example
- Gibbs – simple linear regression
- Gibbs – multiple linear regression
- Slice sampling
- Step-by-step illustration of Metropolis sampling
- Visualization of various MCMC algorithms
- Metropolis – logistic regression
- Metropolis – extreme value analysis with MCMC diagnostics
- Block Metropolis – logistic regression
- Metropolis-Hastings – geostatistics
- HMC- logistic regression
- JAGS download and user manual
- Simple linear regression in JAGS
- Poisson-gamma model in JAGS
- Example of poor convergence
- Example of good convergence
Hierarchical models
- Bayesian LASSO
- Probit regression
- Random effects logistic regression
- Disease modeling
- Bayesian inverse modeling
- Missing and censored data
- Causal inference toy examples
Model selection and evaluation
- Cross validation
- Bayesian multiple testing
- Bayesian R^2
- DIC/WAIC
- Posterior predictive checks
- Posterior predictive checks for censored data
Additional data and example are available here.
