lifeExpectancy: Calculate life expectancy from a matrix population model

Description Usage Arguments Value Author(s) References Examples

Description

Applies Markov chain approaches to obtain mean life expectancy from a matrix population model.

Usage

1
lifeExpectancy(matU, startLife = 1)

Arguments

matU

The survival component of a matrix population model (i.e. a square projection matrix reflecting survival-related transitions; e.g. progression, stasis, and retrogression)

startLife

Index of the first stage at which the author considers the beginning of life. Defaults to 1.

Value

Returns life expectancy. If matU is singular (often indicating infinite life expectancy), returns NA.

Author(s)

Roberto Salguero-Gomez <[email protected]>

Hal Caswell <[email protected]>

References

Caswell, H. (2001) Matrix Population Models: Construction, Analysis, and Interpretation. Sinauer Associates; 2nd edition. ISBN: 978-0878930968

Examples

1
2
3
4
5
6
7
matU <- rbind(c(0.1,   0,   0,   0),
              c(0.5, 0.2, 0.1,   0),
              c(  0, 0.3, 0.3, 0.1),
              c(  0,   0, 0.5, 0.6))

lifeExpectancy(matU)
lifeExpectancy(matU, startLife = 2)

jonesor/Rage documentation built on May 22, 2019, 1:42 p.m.