Learn R Programming

popbio (version 1.0.1)

stoch.growth.rate: Calculate 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)

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 50,000

Value

  • A list with 3 items
  • approxlog stochastic growth rate by Tuljapukar's approximation
  • simlog stochastic growth rate by simulation
  • sim.CIconfindence interval for simulation

source

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
data(hudsonia)
sgr<-stoch.growth.rate(hudsonia)
sgr

exp(sgr$approx)

Run the code above in your browser using DataLab