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.