Skip to content

StanMoMo

1.2.0Package record

Bayesian Mortality Modelling with 'Stan'

0packages depend
3.6Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

Implementation of popular mortality models using the 'rstan' package, which provides the R interface to the 'Stan' C++ library for Bayesian estimation. The package supports well-known models proposed in the actuarial and demographic literature including the Lee-Carter (1992) doi:10.1080/01621459.1992.10475265 and the Cairns-Blake-Dowd (2006) doi:10.1111/j.1539-6975.2006.00195.x models. By a simple call, the user inputs deaths and exposures and the package outputs the MCMC simulations for each parameter, the log likelihoods and predictions. Moreover, the package includes tools for model selection and Bayesian model averaging by leave future-out validation.

Changes in 1.2.0

Since the package ggfan is scheduled for archival, all dependencies to the ggfan package were removed and in particular, the forecast_plot function to generate fan plots was removed.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
All declared Imports should be used.

CRAN check page ↗

Slowest check: 23.0 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-09-08
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-09-07
  • NOTE11 OK, 2 NOTE2026-07-29
  • ERROR10 OK, 2 NOTE, 1 ERROR2026-07-27
  • NOTE11 OK, 2 NOTE2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
  • NOTE9 OK, 5 NOTE2026-04-22
  • ERROR8 OK, 5 NOTE, 1 ERROR2026-04-18
  • NOTE9 OK, 5 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 355 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNo
Help pages
19includes a package overview page
Examples that run
88%7 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
47%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
42%

Downloads

3.6K
CRAN downloads in the past year
Rank #12,184 · ~10/day · ~302/mo
Daily download trend is not available in this view yet.
30230 days
91290 days
3.6K1 year
Compare downloads with other packages →
Also on483 r2u5 autocran44 c2d4u

Repository

15Stars
3Forks
0Open issues
0Open PRs
0Releases
144Commits
5Commit identities
License file reads as GPL-3.0 · 144 commits · Last activity 2023-09-19 · 0% stars, 30d · The default branch showed an older version (1.1.1) than CRAN on 2026-10-22
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-10-29 · 152026-07-07 · 15
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/kabarigou/stanmomo on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2023-09-19

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)

Installing StanMoMo adds 125 packages (59 with compiled code, 97 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (1)
R >= 3.5.0
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 1.0.0 (2021)
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.0Latest
    record
    2023-09-23 · current release · diff ↗ ·
    removed 1 export
    forecasting_plot
  • 1.1.1
    record
    2023-09-17 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.0
    record
    2022-06-24 · diff ↗ ·
    removed 1 export
    load_HMD_data
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0
    record
    2021-10-07
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-10-07
Total releases
4 / 5 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
254 KB / 1 file
Download size
361 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("StanMoMo")
Barigou, K., & Goffard, P. (2023). StanMoMo: Bayesian Mortality Modelling with 'Stan' (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.StanMoMo

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for StanMoMo version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy