Description Usage Arguments Details Value Author(s) See Also Examples
Construct either a full or abridged life table with various input choices like:
death counts and midinterval population estimates (Dx, Ex)
or
agespecific death rates (mx)
or death probabilities (qx)
or survivorship curve (lx)
or a distribution of deaths (dx)
.
If one of these options is specified, the other can be ignored. The input
data can be an object of class: numerical vector
, matrix
or
data.frame
.
1 2 3 4 5 6 7 8 
x 
Vector of ages at the beginning of the age interval. 
Dx 
Object containing death counts. An element of the 
Ex 
Exposure in the period. 
mx 
Death rate in age interval [x, x+n). 
qx 
Probability of dying in age interval [x, x+n). 
lx 
Probability of survival up until age x. 
dx 
Deaths by lifetable population in the age interval [x, x+n). 
sex 
Sex of the population considered here. Default: 
lx0 
Radix. Default: 100 000. 
ax 
Numeric scalar. Subjecttime alive in ageinterval for those who
die in the same interval. If 
The "life table" is also called "mortality table" or "actuarial table". This shows, for each age, what the probability is that a person of that age will die before his or her next birthday, the expectation of life across different age ranges or the survivorship of people from a certain population.
The output is of the "LifeTable"
class with the components:
lt 
Computed life table; 
call 

process_date 
Time stamp. 
Marius D. Pascariu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32  # Example 1  Full life tables with different inputs 
y < 1900
x < as.numeric(rownames(ahmd$mx))
Dx < ahmd$Dx[, paste(y)]
Ex < ahmd$Ex[, paste(y)]
LT1 < LifeTable(x, Dx = Dx, Ex = Ex)
LT2 < LifeTable(x, mx = LT1$lt$mx)
LT3 < LifeTable(x, qx = LT1$lt$qx)
LT4 < LifeTable(x, lx = LT1$lt$lx)
LT5 < LifeTable(x, dx = LT1$lt$dx)
LT1
LT5
ls(LT5)
# Example 2  Compute multiple life tables at once 
LTs = LifeTable(x, mx = ahmd$mx)
LTs
# A warning is printed if the input contains missing values.
# Some of the missing values can be handled by the function.
# Example 3  Abridged life table 
x = c(0, 1, seq(5, 110, by = 5))
mx = c(.053, .005, .001, .0012, .0018, .002, .003, .004,
.004, .005, .006, .0093, .0129, .019, .031, .049,
.084, .129, .180, .2354, .3085, .390, .478, .551)
lt = LifeTable(x, mx = mx, sex = "female")
lt

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.