improvement {BayesMortalityPlus} | R Documentation |
Calculates the improvement of each age, based on the resulting chains of the beta parameter from a fitted blc model.
improvement(obj, prob = 0.95)
obj |
A |
prob |
A real number that represents the credibility level of the intervals. |
A data.frame with the improvement values of each age, as well as their credible intervals.
## Importing log-mortality data from Portugal:
data(PT)
Y <- PT
## Fitting the model
fit = blc(Y = Y, M = 100, bn = 20)
## Improvement:
improvement(fit)
improvement(fit, prob = 0.9) #90% credible intervals