lt_a_closeout: Life expectancy in the open age group.

View source: R/nAx.R

lt_a_closeoutR Documentation

Life expectancy in the open age group.

Description

Get an estimate of life expectancy in the open age group.

Usage

lt_a_closeout(
  mx,
  Age,
  extrapLaw = "kannisto",
  extrapFrom = max(Age),
  extrapFit = Age[Age >= 40],
  ...
)

Arguments

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:

  • "kannisto" – The Kannisto model;

  • "kannisto_makeham" – The Kannisto-Makeham model;

  • "gompertz" – The Gompertz model;

  • "ggompertz" – The Gamma-Gompertz model;

  • "makeham" – The Makeham model;

  • "beard" – The Beard model;

  • "beard_makeham" – The Beard-Makeham model;

  • "quadratic" – The Quadratic model.

extrapFrom

integer. Age from which to impute extrapolated mortality.

extrapFit

integer vector. Ages to include in model fitting. Defaults to all ages > =60.

...

Other arguments to be passed on to the MortalityLaw function.

Details

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().

Value

life expectancy in the open age group

See Also

lt_rule_m_extrapolate

Examples

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")

timriffe/DemoTools documentation built on Jan. 28, 2024, 5:13 a.m.