Skip to content

Stochastic simulation algorithm (non-homogeneous). Files for paper

Notifications You must be signed in to change notification settings

legault/SSAplus

Repository files navigation

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 legault@unc.edu

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.

About

Stochastic simulation algorithm (non-homogeneous). Files for paper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages