mean.BLC {BayesMortalityPlus}R Documentation

BLC: Arithmetic mean

Description

Calculates the means based on the resulting chains from a fitted BLC model.

Usage

## S3 method for class 'BLC'
mean(x, name, ...)

Arguments

x

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

name

A character with a parameter name of the BLC model that should be returned. It can be one of these: "alpha", "beta", "kappa", "phiv", "theta", "phiw".

...

Further arguments passed to or from other methods.

Value

A vector with the mean values of the selected parameter.

See Also

mean.PredBLC() for PredBLC object method.

Examples

data(PT)
Y <- PT

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

mean(fit, "kappa")


[Package BayesMortalityPlus version 0.2.3 Index]