Skip to content

StanMoMo

Bayesian Mortality Modelling with 'Stan'

v1.2.0 · Sep 23, 2023 · GPL-3

Description

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.

Downloads

338

Last 30 days

11656th

948

Last 90 days

3.5K

Last year

Trend: +29% (30d vs prior 30d)

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.

Check History

NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
ERROR 10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘tidyverse’

Package suggested but not available for checking: ‘shinystan’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE 9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 100.9Mb
  sub-directories of 1Mb or more:
    libs  100.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 92.1Mb
  sub-directories of 1Mb or more:
    libs  91.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    libs   5.0Mb
ERROR 8 OK · 5 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/StanMoMo.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 100.9Mb
  sub-directories of 1Mb or more:
    libs  100.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 92.1Mb
  sub-directories of 1Mb or more:
    libs  91.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    libs   5.0Mb
NOTE 9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘RcppParallel’ ‘httr’ ‘latex2exp’ ‘rstantools’ ‘tibble’ ‘tidyverse’
  ‘utils’
  All declared Imports should be used.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 100.9Mb
  sub-directories of 1Mb or more:
    libs  100.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 92.1Mb
  sub-directories of 1Mb or more:
    libs  91.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.7Mb
  sub-directories of 1Mb or more:
    libs   5.0Mb

Dependency Network

Dependencies Reverse dependencies loo RcppParallel Rcpp rstan (>= 2.26.0) rstantools tidyverse dplyr tibble httr bridgesampling tidyselect latex2exp tidyr ggplot2 StanMoMo

Version History

5 tracked
new 1.2.0 Mar 10, 2026
updated 1.2.0 ← 1.1.1 diff Sep 22, 2023
updated 1.1.1 ← 1.1.0 diff Sep 16, 2023
updated 1.1.0 ← 1.0.0 diff Jun 23, 2022
new 1.0.0 Oct 6, 2021