mean.BLC {BayesMortalityPlus} | R Documentation |
Calculates the means based on the resulting chains from a fitted BLC model.
## S3 method for class 'BLC'
mean(x, name, ...)
x |
A |
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. |
A vector with the mean values of the selected parameter.
mean.PredBLC()
for PredBLC
object method.
data(PT)
Y <- PT
## Fitting the model
fit = blc(Y = Y, M = 100, bn = 20)
mean(fit, "kappa")