life.table: life.table

Description Usage Arguments Details Value References See Also Examples

Description

Construct either a period or cohort life table from enumerated deaths and mid-interval population estimates.

Usage

1
2
3
4
5
6
7
8
life.table(x, nDx, nKx, 
	      b0 = c(0.07, 1.7), 
	      b1 = c(0.053, 2.8), 
	      b4 = c(1.522, 1.518), 
	      type = "kf", 
	      nxx = 0, 
	      iwidth = 5, 
	      width12 = c(1, 4))

Arguments

x

age at the beginning of the age classes of the life table

nDx

deaths

nKx

population size

b0

coefficients used in Keyfitz-Flieger graduation

b1

first set of coefficients used in Coale-Demeny graduation

b4

second set of coefficients used in Coale-Demeny graduation

type

type of life table calculation: "kf", "cd", or "cohort". Default is "kf".

nxx

person-years lived by those dying in the last (possibly open) age-class. If nxx=0, the person-years lived by those dying in the interval is the inverse of the central death rate (corresponding to exponentially distributed failure times).

iwidth

width of the age intervals. Default iwidth=5.

width12

width of the first two age classes. Default width12=c(1,4).

Details

Constructs a period or cohort life tables from enumerated deaths and mid-interval population sizes (period) or enumerated deaths and person-years at risk (cohort). x, nDx, and nKx must all the be same length.

There are currently three options for life table construction. The first two are for the construction of period life tables. They differ only in the way that person-years lived by those dying in the first two intervals are handled. For type="kf", the default, the first two values of nax estimated using Keyfitz and Fleiger's (1990) regression method. For type="cd", Coale and Demeny's method (1983) is used. The Coale-Demeny method uses different coefficients depending on the level of early mortality. As a result, this method may work better for high-mortality populations.

The third type of life table is a cohort life table, for which the conversion from mortality rates to probabilities of death is unnecessary, so the nax column of the life table is of limited interest.

Value

A dataframe with nine columns:

x

age at the beginning of the interval

nax

person-years lived by those dying in the interval x to x+n

nMx

period central death rate

nqx

probability of death between ages x and x+n

lx

probability of survival to exact age x

ndx

proportion of deaths occurring between ages x and x+n

nLx

person-years lived in the interval x to x+n

Tx

person-years of life left in the cohort at age x

ex

life expectancy at age x

References

Keyfitz, N. 1977. Introduction to the mathematics of populations. 2nd ed. Menlo Park: Addison-Wesley.

Coale, A., P. Demeny, and B. Vaughn. 1983. Regional model life tables and stable populations. 2nd ed. New York: Academic Press.

Keyfitz, N., and W. Flieger. 1990. World population growth and aging: Demographic trends in the late twentieth century. Chicago: University of Chicago Press.

Preston, S.H., P. Heuveline, and F. Guillot. 2001. Demography: Measuring and modeling population processes. Oxford: Blackwell.

See Also

cdmltw

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(goodman)
## default type="kf"
vlt <- with(goodman, life.table(x=age, nKx=ven.nKx, nDx=ven.nDx))

## compare nax values for cd vs kf life tables
vlt1 <- with(goodman, life.table(x=age, nKx=ven.nKx, nDx=ven.nDx, type="cd"))
vlt$nax[1:2]
vlt1$nax[1:2]

## now construct a cohort life table for Himalayan thar,
##  (Hemitargus jemlahicus) 
data(thar)
thar.lt <- with(thar, life.table(x=age, nDx=deaths, nKx=count, 
    type="cohort", iwidth=1, width12=c(1,1)))
thar.lt

Example output

[1] 0.1483 1.5000
[1] 0.1820 1.5919
    x nax    nMx    nqx     lx    ndx    nLx   Tx   ex
1   0 0.5 0.5317 0.5317 1.0000 0.5317 0.7341 3.49 3.49
2   1 0.5 0.0208 0.0208 0.4683 0.0098 0.4634 2.75 5.88
3   2 0.5 0.0532 0.0532 0.4585 0.0244 0.4463 2.29 4.99
4   3 0.5 0.1124 0.1124 0.4341 0.0488 0.4098 1.84 4.24
5   4 0.5 0.1392 0.1392 0.3854 0.0537 0.3585 1.43 3.72
6   5 0.5 0.1912 0.1912 0.3317 0.0634 0.3000 1.07 3.24
7   6 0.5 0.2182 0.2182 0.2683 0.0585 0.2390 0.77 2.88
8   7 0.5 0.2558 0.2558 0.2098 0.0537 0.1829 0.53 2.55
9   8 0.5 0.3125 0.3125 0.1561 0.0488 0.1317 0.35 2.25
10  9 0.5 0.3182 0.3182 0.1073 0.0341 0.0902 0.22 2.05
11 10 0.5 0.3333 0.3333 0.0732 0.0244 0.0610 0.13 1.77
12 11 0.5 0.4000 0.4000 0.0488 0.0195 0.0390 0.07 1.40
13 12 1.0 1.0000 1.0000 0.0293 0.0293 0.0293 0.03 1.00

demogR documentation built on May 1, 2019, 10:56 p.m.