Vitense, KelseyHanson, Mark AHerwig, Brian RZimmer, Kyle DFieberg, John R2017-10-032017-10-032017-10-03https://hdl.handle.net/11299/190408Detailed descriptions for each of the files can be found in Readme.txt. The R Markdown, data, and script files can be opened using the R user interface, RStudio (RStudio Team 2015). Once all files are downloaded to a single directory, double-click on 'BLR_data_and_Code.Rproj' to open up a new RStudio window, and the working directory will automatically be set to the folder where the project files are located. The rest of the files can be opened from RStudio.This repository contains the data and R code used to conduct the analyses in the article "Uncovering state-dependent relationships in shallow lakes using Bayesian latent variable regression" in Ecological Applications.Attribution-NonCommercial-ShareAlike 3.0 United Stateshttp://creativecommons.org/licenses/by-nc-sa/3.0/us/Bayesian statisticslatent variablealternative stable stateshysteresisregime shiftshallow lakesphosphorusbifurcationData and R code supporting "Uncovering state-dependent relationships in shallow lakes using Bayesian latent variable regression"Datasethttps://doi.org/10.13020/D6408P