Learn R Programming

LifeTables (version 0.1)

mod.lt: Calculate a Model Life Table

Description

This function takes as arguments a value for child mortality, an indication of which child mortality indicator is supplied (defaults to 5q0), a possible value for 45q15, a posiible target life expectancy to determine the level of mortality and the sex of the desired life table (defaults to "female"). The function selects the appropriate family (and level if a desired life expectancy is supplied or a value for alpha) and returns a life table. The resulting life table defaults to alpha=0.

Usage

mod.lt(child.value, child.mort=4, e0.target=NULL, adult.mort=NULL, 
	sex="female", alpha=0)

Arguments

child.value
A numeric value for one of four child mortality measures.
child.mort
An interger (1-4) to indicate which child mortality indicator is being supplied (1 - 1m0; 2 - 5m0; 3 - 1q0; 4 - 5q0). Defaults to 5q0.
e0.target
The desired life expentacy for the life table. If no life expectancy is supplied the resulting life table defaults to alpha=0.
sex
"male" or "female" indicates the sex for the desired life table. Defaults to "female".
adult.mort
Optional. If supplied, the function uses both the child mortality measure and 45q15 to select the family. Otherwise, just the child mortality indicator is used.
alpha
If e0.target is not supplied, alpha defaults to 0. This can be any number with negative values producing lower mortality and positive values producing higher mortality.

Value

  • lt.outThe life table output from the function lt.mx including $e0, life expectancy at birth, $lt.5q0, the probability of death between birth and age 5, $lt.4q15, the probability of death between age 15 and 60, and $lt, the complete, resulting life table with columns for age, nax, nmx, nqx, npx, ndx, lx, nLx, Tx, and ex.
  • alphaThe alpha value which produced the table. This value is either user supplied or calculated from the user supplied e0.target.
  • sexSex of the life table.
  • familyAn integer (1-5) to indicate the life table family/pattern.

References

S. Clark and D. Sharrow (2011) "Contemporary Model Life Tables for Developed Countries: An Application of Model-Based Clustering." Working Paper No. 107, Center for Statistics and the Social Sciences, University of Washington, www.csss.washington.edu/Papers/

Human Mortality Database University of California, Berkeley (USA), and Max Planck Institute for Demographic Research (Germany). Available at www.mortality.org or www.humanmortality.de (data downloaded on [November 2009]).

See Also

hmd.DA, alpha.e0, mortmod, lt.mx

Examples

Run this code
mod.lt(child.value=.04, child.mort=4, sex="male", adult.mort=.18, 
e0.target=60)

Run the code above in your browser using DataLab