Description Usage Arguments Value Author(s) References Examples

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

1 | ```
lifeExpectancy(matU, startLife = 1)
``` |

`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. |

Returns life expectancy. If `matU`

is singular (often indicating
infinite life expectancy), returns `NA`

.

Roberto Salguero-Gomez <[email protected]>

Hal Caswell <[email protected]>

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

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.