Learn R Programming

petitr (version 1.0)

xlxmx: 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)

References

Lotka 1924, Birch 1948

See Also

r, and petitr, called by ranova

Examples

Run this code
# NOT RUN {
data(life)
tablif=xlxmx(life,s=1)
# }

Run the code above in your browser using DataLab