Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


BayesMortalityPlus (version 0.2.3)

summary.HP: HP: Summary

Description

Summarizes information from the parameters' markov chains of a fitted HP or ClosedHP model.

Usage

# S3 method for HP
summary(object, ...)

Value

A data.frame object with the mean, standard deviation and 2.5%, 50% and 97.5% quantiles of a fitted HP or ClosedHP model.

Arguments

object

A HP or ClosedHP object, result of a call to hp() or hp_close() function.

...

Further arguments passed to or from other methods.

See Also

summary.DLM() for DLM method.

Examples

Run this code
 ## Importing mortality data from the USA available on the Human Mortality Database (HMD):
data(USA)

## Selecting the exposure and death count of the 2010 male population ranging from 0 to 90 years old
USA2010 = USA[USA$Year == 2010,]
x = 0:90
Ex = USA2010$Ex.Male[x+1]
Dx = USA2010$Dx.Male[x+1]

## Fitting binomial model
fit = hp(x = x, Ex = Ex, Dx = Dx, M = 5000, bn = 0, thin = 10)
summary(fit)

Run the code above in your browser using DataLab