Code will be submitted to the Dryad repository upon acceptance of the manuscript. These R code are used for simulations and case studies. Simulations include data for generating age-period survival data. We have provided code for each of the 10 models that were fit using NIMBLE, where each model has four R scripts including: 1) A script to execute and run all the additional R scripts for each simulation as well as for providing necessary libraries. 2) A preliminary script that runs the data generating and formatting scripts, computes the necessary basis expansions, and calculates constants needed for model fitting. 3) A script for running the models in nimble with additional nimble functions used for intermediary calculations. 4) An R script for doing model checking and plotting of results.
|Title||Code for Assimilating ecological theory with empiricism: Using constrained generalized additive models to enhance survival analyses|
|Authors||Daniel P Walsh, Alison Ketz, Daniel Storm, Rachel Barker, Anthony Apa, Cristian Oliva-Aviles|
|Product Type||Software Release|
|Record Source||USGS Digital Object Identifier Catalog|
|USGS Organization||Cooperative Research Units|