Learn R Programming

popbio (version 2.8)

stoch.growth.rate: Log stochastic growth rate

Description

Calculates the log stochastic growth rate by Tuljapukar's approximation and by simulation

Usage

stoch.growth.rate(matrices, prob = NULL, maxt = 50000, verbose = TRUE)

Value

A list with 3 items

approx

log stochastic growth rate by Tuljapukar's approximation

sim

log stochastic growth rate by simulation

sim.CI

confindence interval for simulation

Arguments

matrices

a list with two or more projection matrices, or a matrix with one projection matrix per column, with elements filled by columns

prob

a vector of probability weights used by sample for selecting the projection matrices, defaults to equal probabilities

maxt

number of time intervals, default 50000

verbose

Print comment at start of time 1, 10000, 20000, etc.

Author

Chris Stubben

Details

converted Matlab code from Box 7.4 in Morris and Doak (2002)

References

Morris, W. F., and D. F. Doak. 2002. Quantitative conservation biology: Theory and practice of population viability analysis. Sinauer, Sunderland, Massachusetts, USA.

See Also

stoch.projection to output population sizes from simulation

Examples

Run this code
sgr <- stoch.growth.rate(hudsonia)
sgr
exp(sgr$approx)

Run the code above in your browser using DataLab