WinBUGS and R code to fit change point and variable selection models.
Ecological Archives A020-051-S1.
File list (downloads)
Australian Centre for Biodiversity, School of Biological Sciences
trend model with changepoints.txt - WinBUGS model file for trend model with change points
R code to fit trend model with change points.R - R script for fitting trend model via R2WinBUGS
varselect model.txt - WinBUGS model file for non-linear variable selection model
R code to fit variable selection model.R - R script for fitting variable selection model via R2WinBUGS
CCCP model.txt - WinBUGS model file for covariate conditioned change point model
R code to fit cccp model.R - R script for fitting covariate conditioned change point model via R2WinBUGS
multispecies changepoint.txt - WinBUGS model file for multi-species covariate conditioned change point model
R code to fit multispecies cccp model.R - R script for fitting multi-species covariate conditioned change point model via R2WinBUGS
Data.zip - Data saved as R objects to demonstrate use of R scripts and WinBUGS models
Download all files.zip
The .txt files are WinBUGS model codes for the models described in the paper. These models require the reversible "jump" add-on for WinBUGS (available from WinBUGS development website). The R scripts can be used to generate required data files and run the WinBUGS models from R. Data.zip contains example input data for all models. The R scripts require all files to be in the R working directory and the R2WinBUGS package must be installed.
ESA Publications | Ecological Archives | Permissions | Citation | Contacts