Bayesian Mortality Forecasting
Overview
Carry out Bayesian estimation and forecasting for a variety of stochastic mortality models using vague prior distributions. Models supported include numerous well-established approaches introduced in the actuarial and demographic literature, such as the Lee-Carter (1992) doi:10.1080/01621459.1992.10475265, the Cairns-Blake-Dowd (2009) doi:10.1080/10920277.2009.10597538, the Li-Lee (2005) doi:10.1353/dem.2005.0021, and the Plat (2009) doi:10.1016/j.insmatheco.2009.08.006 models. The package is designed to analyse stratified mortality data structured as a 3-dimensional array of dimensions p × A × T (strata × age × year). Stratification can represent factors such as cause of death, country, deprivation level, sex, geographic region, insurance product, marital status, socioeconomic group, or smoking behavior. While the primary focus is on analysing stratified data (p > 1), the package can also handle mortality data that are not stratified (p = 1), including 'demogdata' and 'StMoMoData' objects. Model selection via the Deviance Information Criterion (DIC) is supported.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
Release 0.2.0 has not been analysed yet.
- Help pages
- 36includes a package overview page
- Examples that run
- 71%25 run in a plain check · 10 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 53%
Downloads
Dependencies
Installing BayesMoFo adds 103 packages (50 with compiled code, 67 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insightfix by Nov 14
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest2026-10-26 · current release · diff ↗ ·
48 hours in CRAN's queue
Listed in CRAN's incoming queue from 2026-10-23 19:40 to 2026-10-25 19:37 UTC, in 14 readings. - RR 4.6.0 released · 2026-04-24
- 0.1.02025-07-14
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-07-14
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 523 KB / 9 files
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("BayesMoFo")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.