README.md

Introduction

This repo contains code for implementing a Bayesian change-point linear regression models for time series data. The models are relatively simple and it can be really useful for answering questions related to changes in trends over time. Example datasets of global temperature are provided in the data folder. The CPmain.R file calls functions to run the model, run diagnostics and produce results.

Install packages and JAGS

Running these models requires JAGS (Just Another Gibbs Sampler) which you can install from here.



ncahill89/CPModel documentation built on Jan. 28, 2022, 12:45 a.m.