xlxmx {petitr} | R Documentation |
builds an average life table from a set of individuals
Description
Calculates a life table with three columns, x, lx mx from the age specific birth data of a set of individuals. Called by petitr, but may be used as standalone function.
Usage
xlxmx(X, s)
Arguments
X |
a data.frame. See petitr |
s |
Sex ratio expressed as the proportion of females in the population |
Value
a data.frame with three columns, x (age), lx (survival at age x), mx (birth rate at age x)
Author(s)
Jean-Sebastien Pierre jean-sebastien.pierre@univ-rennes1.fr
References
Lotka 1924, Birch 1948
See Also
r
, and petitr
, called by ranova
Examples
data(life)
tablif=xlxmx(life,s=1)
[Package petitr version 1.0 Index]