Description Usage Arguments Value Note
Generate posterior samples of death rates and life tables.
1 | maple_sample(model.fit, num.draws, ax)
|
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. |
A list of life table draws, calculated using posterior samples of death rates.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.