HP.CI: Helligman-Pollard confidence intervals with 9 parameters

Description Usage Arguments Details Value References See Also

View source: R/HP.CI.R

Description

Predicts Helligman-Pollard model with the estimated parameters both "natural" mortality, "total" mortality and mortality due to an external risk with confidence intervals.

Usage

1
HP.CI(HPout, age, CI = 95, M = "total")

Arguments

HPout

A model object created with HP.mod with the Heligman-Pollard estimated params

age

A vector of the ages at which the probabilities of death will be calculated.

CI

Defines the width of the credible interval (Defaults to 95 percent). A summary table is printed with the median estimate and lower and upper confidence bounds. Setting CI = 95 prints a table with the first column representing the 2.5th percentile for each parameter distribution, the second column represents the median value for each parameter distribution and the third column represents the 97.5th percentile for each parameter distribution.

M

The type of probabilities to be calculated. Can be both "natural" mortality, "total" mortality and mortality due to an external risk.

Details

The type of mortality to be calculated must be defined. By default the total probability of death is calculated but only natural mortality or due to an external risk can be calculad if previously defined.

Value

Return a dataframe with number of rows equal to the number of age classes and four columns:

age

Vetor with age classes.

Med

Median prediction of probabilities of death at age.

Mlo

Lower limit of prediction of probabilities of death at age with CI = (100 - CI)/2.

Mhi

Higher limit of prediction of probabilities of death at age with CI = 1- (100 - CI)/2.

References

Heligman, L. and Pollard, J.H. (1980). The Age Pattern of Mortality. Journal of the Institute of Actuaries 107:49<e2><80><93>80.

See Also

hp.nqx mod mod.nat mod.risk


strandCet documentation built on May 1, 2019, 8:19 p.m.

Related to HP.CI in strandCet...