lt_a_closeout | R Documentation |
Get an estimate of life expectancy in the open age group.
lt_a_closeout(
mx,
Age,
extrapLaw = "kannisto",
extrapFrom = max(Age),
extrapFit = Age[Age >= 40],
...
)
mx |
Vector or matrix of age specific death-rates. |
Age |
integer. A vector of ages of the lower integer bound of the age classes. |
extrapLaw |
character. The following options are available:
|
extrapFrom |
integer. Age from which to impute extrapolated mortality. |
extrapFit |
integer vector. Ages to include in model fitting. Defaults to all ages |
... |
Other arguments to be passed on to the
|
This method estimates life expectancy in the open age group by fitting one of several potential old-age parametric mortality models, extrapolating rates to age 130, then backing out the implied remaining life expectancy in the open age group. This function replaces aomegaMORTPAK()
.
life expectancy in the open age group
lt_rule_m_extrapolate
nMx <- c(0.12846,0.02477,0.00603,0.0034,
0.00417,0.00513,0.00581,0.00645,0.00725,
0.00813,0.00913,0.01199,0.01647,
0.0256,0.04047,0.06624,0.10638,0.19611)
Age <- c(0,1,seq(5,80,by =5))
lt_a_closeout(nMx,Age,"kannisto")
lt_a_closeout(nMx,Age,"kannisto_makeham")
lt_a_closeout(nMx,Age,"makeham")
lt_a_closeout(nMx,Age,"gompertz")
lt_a_closeout(nMx,Age,"ggompertz")
lt_a_closeout(nMx,Age,extrapLaw ="beard")
lt_a_closeout(nMx,Age,"beard_makeham")
lt_a_closeout(nMx,Age,"quadratic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.