expectancy.BLC {BayesMortalityPlus}R Documentation

BLC: Life expectancy


Computes the fitted life expectancy for a specific age for each year in fit or prediction. It also calculates the limits of credible intervals.


## S3 method for class 'BLC'
expectancy(x, at = NULL, prob = 0.95, ...)



A BLC or PredBLC object.


A number that determines at which age the expectancy life is calculated based on the ages used in fit or prediction. For instance, at = 0 is related to the first age used in fitted model.


A number that specifies the probability of the credible interval. Default is '0.95'.


Further arguments passed to or from other methods.


A list that contains three vectors with the fitted values of life expectancy and the lower and upper limits of the credible intervals for each year used in fitted model or for the prediction.

See Also

expectancy.HP() and expectancy.DLM() for HP and DLM methods.

Heatmap.BLC() for BLC method to drawing a Heatmap for the truncated life expectancy.


## Importing log-mortality data from Portugal:
Y <- PT

## Fitting the model
fit = blc(Y = Y, M = 100, bn = 20)

## Life expectancy for the years used in model fitted

## Life expectancy for the tenth and thirtieth age in the years used in
## model fitted (27 and 47 y.o.)
expectancy(fit, at = c(10,30))

[Package BayesMortalityPlus version 0.1.1 Index]