Package: StanMoMo 1.2.0

Karim Barigou

StanMoMo: Bayesian Mortality Modelling with 'Stan'

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.

Authors:Karim Barigou [aut, cre], Pierre-Olivier Goffard [aut]

StanMoMo_1.2.0.tar.gz
StanMoMo_1.2.0.zip(r-4.7-x86_64)StanMoMo_1.2.0.zip(r-4.7-arm64)StanMoMo_1.2.0.zip(r-4.6-x86_64)StanMoMo_1.2.0.zip(r-4.6-arm64)
StanMoMo_1.2.0.tar.gz(r-4.7-arm64)StanMoMo_1.2.0.tar.gz(r-4.7-x86_64)StanMoMo_1.2.0.tar.gz(r-4.6-arm64)StanMoMo_1.2.0.tar.gz(r-4.6-x86_64)
StanMoMo_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
StanMoMo/json (API)

# Install 'StanMoMo' in R:
install.packages('StanMoMo', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kabarigou/stanmomo/issues

Uses libs:
  • onetbb– Parallelism library for C++
  • c++– GNU Standard C++ Library v3
Datasets:
  • FRMaleData - Deaths and Exposures Data of French Males

On CRAN:

Conda:

onetbbcpp

3.18 score 15 scripts 320 downloads 17 exports 127 dependencies

Last updated from:01163f7dec. Checks:8 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE419
linux-devel-x86_64NOTE534
source / vignettesOK741
linux-release-arm64NOTE424
linux-release-x86_64NOTE498
windows-devel-arm64NOTE486
windows-devel-x86_64NOTE670
windows-release-arm64NOTE540
windows-release-x86_64NOTE525
wasm-releaseOK245

Exports:apc_stanboxplot_post_distcbd_stancompute_weights_BMAextract_mapfit_mo_molc_stanm6_stanmortality_weightsrh_stansim_death_apcsim_death_cbdsim_death_lcsim_death_m6sim_death_mix_cbd_rhsim_death_rhsim_mortality_data

Dependencies:abindaskpassbackportsbase64encBHbitbit64blobbridgesamplingBrobdingnagbroombslibcachemcallrcellrangercheckmateclicliprcodaconflictedcpp11crayoncurldata.tableDBIdbplyrdescdigestdistributionaldplyrdtplyrevaluatefarverfastmapfontawesomeforcatsfsgarglegenericsggplot2gluegoogledrivegooglesheets4gridExtragtablehavenhighrhmshtmltoolshttridsinlineisobandjquerylibjsonliteknitrlabelinglatex2explatticelifecycleloolubridatemagrittrMatrixmatrixStatsmemoisemimemodelrmvtnormnumDerivopensslotelpillarpkgbuildpkgconfigposteriorprettyunitsprocessxprogresspspurrrQuickJSRR6raggrappdirsRColorBrewerRcppRcppEigenRcppParallelreadrreadxlrematchrematch2reprexrlangrmarkdownrstanrstantoolsrstudioapirvestS7sassscalesselectrStanHeadersstringistringrsyssystemfontstensorAtextshapingtibbletidyrtidyselecttidyversetimechangetinytextzdbutf8uuidvctrsviridisLitevroomwithrxfunxml2yaml

Bayesian Model Averaging
Introduction | Bayesian model averaging via stacking and pseudo-BMA | Implementation | References

Last update: 2023-09-23
Started: 2021-10-07

Bayesian Mortality Modeling
Introduction: Bayesian Lee-Carter with Stan | Bayesian Estimation | Forecasting | Other models

Last update: 2023-09-23
Started: 2021-10-07