improvement: BLC: Improvement

View source: R/improvement.R

improvementR Documentation

BLC: Improvement

Description

Calculates the improvement of each age, based on the resulting chains of the beta parameter from a fitted blc model.

Usage

improvement(obj, prob = 0.95)

Arguments

obj

A BLC object, result of a call to blc() function.

prob

A real number that represents the credibility level of the intervals.

Value

A data.frame with the improvement values of each age, as well as their credible intervals.

Examples

## 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



BayesMortalityPlus documentation built on June 22, 2024, 7 p.m.