This repository contains R code associated with the paper "Accounting for environmental change in continuous-time stochastic population models".
Link to paper: https://link.springer.com/article/10.1007/s12080-018-0386-z
For questions, contact me at [email protected]
This annotated file contains code for reproducing Figure 1 in the manuscript.
It utilizes the environment functions, located in folder "Environments".
This annotated file contains code for reproducing Figure 2 in the manuscript. It calculates and plots the cumulative distribution functions associated with exponential and logistic growth under a variety of environment change conditions.
It utilizes the environment functions (folder "Environments"), demographic functions (folder "Demographic functions"), and intensity functions (folder "Intensity functions"), and also contains functions for calculating CDFS of both homogeneous and nonhomogeneous processes.
This file (reproduced from Appendix B) has self-contained code for simulating the SSA and SSA+ for a constant environment.
This file has self-contained code for simulating the SSA and SSA+ for an increasing environment.
This file has self-contained code for simulating the SSA and SSA+ for a fluctuating environment.