Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.35 KB

README.md

File metadata and controls

31 lines (16 loc) · 1.35 KB

SSAplus

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]

results-figure1.R

This annotated file contains code for reproducing Figure 1 in the manuscript.

It utilizes the environment functions, located in folder "Environments".

results-figure2.R

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.

example-constant.R

This file (reproduced from Appendix B) has self-contained code for simulating the SSA and SSA+ for a constant environment.

example-increasing.R

This file has self-contained code for simulating the SSA and SSA+ for an increasing environment.

example-fluctuating.R

This file has self-contained code for simulating the SSA and SSA+ for a fluctuating environment.