popdemo
provides tools for modelling populations and demography using matrix projection models (MPMs), with deterministic and stochastic model implementations. These tools include population projection, indices of short- and long-term population size and growth, perturbation analysis, convergence to stability or stationarity, and diagnostic and manipulation tools.
If you use popdemo
, please cite Stott et al. (2012) Methods Ecol. Evol., 3, 797-802. Thanks!
popdemo
is available on CRAN as well as GitHub. The GitHub repository may be ahead of the CRAN version, so for the latest stable version check out the GitHub page. The GitHub repository also includes a development branch with a development version of the package (called popdemoDev
). This is likely to be unstable but may include new features.
Vignette exercises usually require the latest version of the package (unless they're sourced from within an older package version).
# Install dependencies from CRAN:
install.packages(c("devtools", "expm", "MCMCpack", "markovchain"))
# Install stable version from GitHub (recommended):
# NOTE don't forget to change the version number!
devtools::install_github("iainmstott/popdemo/x.x-x/popdemo") #x.x-x is the desired version number
# Install development version 'popdemoDev' (not recommended):
devtools::install_github("iainmstott/popdemo/Dev/popdemoDev", ref = "development")
Note that vignettes do not install automatically from GitHub. If you want vignettes to be included, include build_vignettes = TRUE
.
install.packages("popdemo")
Report bugs and errors to iainmstott@gmail.com.