Skip to content

YaohuiZeng/Bayesian-changepoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bayesian modeling of a changepoint problem with R implementation

Bayesian Course Project: Bayesian modeling for a changepoint problem

Yaohui Zeng (yaohui-zeng@uiowa.edu), May 13, 2015

R implementation for the OpenBUGS example: Stagnant - a changepoint problem and an illustration of how NOT to do MCMC! http://mathstat.helsinki.fi/openbugs/Examples/Stagnant.html

  • M1_DiscretePrior.R:
  • Model 1: discrete prior for the index of the changepoint, k.
  • M2_ContinuousPrior.R:
  • Model 2: continuous prior for the changepoint value, x_k.
  • Stan_analysis.R
  • RStan implementation

The implementations reproduce results from OpenBUGS.

About

Bayesian modeling of a changepoint problem with R implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages