fitted.BLC {BayesMortalityPlus} | R Documentation |
Computes the fitted values associated to each age and year based on the resulting chains from a fitted BLC model. In addition, this function also evaluates the values of lower and upper limits of the credible interval.
## S3 method for class 'BLC'
fitted(object, prob = 0.95, ...)
object |
A |
prob |
A real number that indicates the probability of the credible interval. |
... |
Other arguments. |
A list with the matrices of fitted values and lower and upper limits of the credible interval for each age and year.
fitted.HP()
and fitted.DLM()
for HP
or DLM
methods.
## Importing log-mortality data from Portugal:
data(PT)
Y <- PT
## Fitting the model
fit = blc(Y = Y, M = 100, bn = 20)
## Log-mortalities estimates for each age and year in model fitted
fitted(fit, prob = 0.95)