xlxmx {petitr} | R Documentation |
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.
xlxmx(X, s)
X |
a data.frame. See petitr |
s |
Sex ratio expressed as the proportion of females in the population |
a data.frame with three columns, x (age), lx (survival at age x), mx (birth rate at age x)
Jean-Sebastien Pierre jean-sebastien.pierre@univ-rennes1.fr
Lotka 1924, Birch 1948
r
, and petitr
, called by ranova
data(life)
tablif=xlxmx(life,s=1)