Supporting materials for: Brilleman SL, Howe L, Wolfe R, Tilling K. Bayesian piecewise linear mixed models with a random change point: an application to BMI rebound in childhood. Epidemiology. 2017 (to appear)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
R_example_fitting_the_random_change_point_model_in_Stan.R
eAppendix_Brilleman_et_al.pdf
stancode_randomchangecorr.stan

README.md

Supporting materials for published article

License

This repository contains the supplementary materials, including computing R code, for fitting the models described in the following paper:

Brilleman SL, Howe L, Wolfe R, Tilling K. Bayesian piecewise linear mixed models with a random change point: an application to BMI rebound in childhood. Epidemiology 2017;(6):827-833. doi: 10.1097/EDE.0000000000000723

These materials however are subject to change, to make sure they stay up-to-date and working with their dependencies, and hopefully also with some improvements to the code over time. The ultimate aim will be to develop an R package that will provide a general purpose user-friendly interface for fitting these random change point models.

Getting Started

Estimation of the random change point models is done using the Bayesian software Stan. In order to use Stan from R, you will need to install RStan, which is the R iterface to Stan. The details for installing RStan can be found here.

Bug Reports

If you find any bugs, please report them via email to Sam Brilleman.

References

  1. Brilleman SL, Howe L, Wolfe R, Tilling K. Bayesian piecewise linear mixed models with a random change point: an application to BMI rebound in childhood. Epidemiology 2017;(6):827-833. doi: 10.1097/EDE.0000000000000723

  2. Stan Development Team (2015) Stan Modeling Language Users Guide and Reference Manual. http://mc-stan.org/documentation/