maple_sample: Generate posterior samples of death rates and life tables.

Description Usage Arguments Value Note

View source: R/maple_sample.R

Description

Generate posterior samples of death rates and life tables.

Usage

1
maple_sample(model.fit, num.draws, ax)

Arguments

model.fit

A model fitted using maple_fit_model().

num.draws

The number of samples.

ax

The number of years lived on average by those who die in their current age group. See ?maple_plt for more details.

Value

A list of life table draws, calculated using posterior samples of death rates.

Note

For models fitted with INLA, this uses INLA's inla.posterion.sample() function. For Lee Carter models, it samples from the distribution of the fitted parameters, using the estimated mean and standard deviation.


vkontis/maple documentation built on July 15, 2019, 5:08 p.m.