Package: bage 0.7.6

John Bryant

bage: Bayesian Estimation and Forecasting of Age-Specific Rates

Fast Bayesian estimation and forecasting of age-specific rates, probabilities, and means, based on 'Template Model Builder'.

Authors:John Bryant [aut, cre], Junni Zhang [aut], Bayesian Demography Limited [cph]

bage_0.7.6.tar.gz
bage_0.7.6.zip(r-4.5)bage_0.7.6.zip(r-4.4)bage_0.7.6.zip(r-4.3)
bage_0.7.6.tgz(r-4.4-x86_64)bage_0.7.6.tgz(r-4.4-arm64)bage_0.7.6.tgz(r-4.3-x86_64)bage_0.7.6.tgz(r-4.3-arm64)
bage_0.7.6.tar.gz(r-4.5-noble)bage_0.7.6.tar.gz(r-4.4-noble)
bage.pdf |bage.html
bage/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/bayesiandemography/bage/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • HMD - Components from Human Mortality Database
  • LFP - Components from OECD Labor Force Participation Data
  • deaths - Deaths in Iceland
  • divorces - Divorces in New Zealand
  • expenditure - Per Capita Health Expenditure in the Netherlands, 2003-2011
  • households - People in One-Person households in New Zealand
  • injuries - Fatal Injuries in New Zealand
  • us_acc_deaths - Accidental Deaths in the USA

On CRAN:

39 exports 2 stars 2.68 score 23 dependencies 36 scripts 253 downloads

Last updated 3 hours agofrom:ab09632503. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 18 2024
R-4.5-win-x86_64OKSep 18 2024
R-4.5-linux-x86_64OKSep 18 2024
R-4.4-win-x86_64OKSep 18 2024
R-4.4-mac-x86_64OKSep 18 2024
R-4.4-mac-aarch64OKSep 18 2024
R-4.3-win-x86_64OKSep 18 2024
R-4.3-mac-x86_64OKSep 18 2024
R-4.3-mac-aarch64OKSep 18 2024

Exports:ARAR1augmentcomponentsequationfitforecastgenerateis_fittedKnownLinLin_ARLin_AR1mod_binommod_normmod_poisNNFixreplicate_datareport_simRWRW_SeasRW2RW2_Seasset_datamod_outcome_rr3set_dispset_n_drawset_priorset_var_ageset_var_sexgenderset_var_timeSpSVDSVD_ARSVD_AR1SVD_RWSVD_RW2tidyunfit

Dependencies:clicpp11fansigenericsgluelatticelifecyclemagrittrMatrixmatrixStatspillarpkgconfigpoputilsRcppRcppEigenrlangrvectibbletidyselectTMButf8vctrswithr

Introduction

Rendered fromvig1_intro.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-04-09
Started: 2023-06-23

Mathematical Details

Rendered fromvig2_math.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-09-09
Started: 2023-06-23

Priors

Rendered fromvig3_priors.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-04-09
Started: 2023-06-23

Singular Value Decomposition

Rendered fromvig4_svd.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-05-01
Started: 2023-07-15

Bayesian Workflow

Rendered fromvig5_workflow.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-04-09
Started: 2023-06-23

Modelling Mortality

Rendered fromvig6_mortality.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-08-15
Started: 2023-07-15

Readme and manuals

Help Manual

Help pageTopics
Autoregressive PriorAR
Autoregressive Prior of Order 1AR1
Extract Data and Modelled Valuesaugment.bage_mod
Extract Values for Hyper-Parameterscomponents.bage_mod
Extract Components used by SVD Summarycomponents.bage_ssvd
Data Modelsdatamods
Deaths in Icelanddeaths
Divorces in New Zealanddivorces
Per Capita Health Expenditure in the Netherlands, 2003-2011expenditure
Fit a Modelfit.bage_mod
Use a Model to Make a Forecastforecast.bage_mod
Generate Random Age or Age-Sex Profilesgenerate.bage_ssvd
Components from Human Mortality DatabaseHMD
People in One-Person households in New Zealandhouseholds
Fatal Injuries in New Zealandinjuries
Test Whether a Model has Been Fittedis_fitted
Known PriorKnown
Components from OECD Labor Force Participation DataLFP
Linear Prior with Independent Normal ErrorsLin
Linear Prior with Autoregressive ErrorsLin_AR
Linear Prior with Autoregressive Errors of Order 1Lin_AR1
Specify a Binomial Modelmod_binom
Specify a Normal Modelmod_norm
Specify a Poisson Modelmod_pois
Normal PriorN
Normal Prior with Fixed VarianceNFix
Printing a Modelprint.bage_mod
Priors for Intercept, Main Effects, Interactionspriors
Create Replicate Datareplicate_data
Simulation Study of a Modelreport_sim
Random Walk PriorRW
Random Walk Prior with Seasonal EffectRW_Seas
Second-Order Random Walk PriorRW2
Second-Order Random Walk Prior with Seasonal EffectRW2_Seas
Specify RR3 Data Modelset_datamod_outcome_rr3
Specify Prior for Dispersion or Standard Deviationset_disp
Specify Number of Draws from Prior or Posterior Distributionset_n_draw
Specify Prior for Model Termset_prior
Specify Age Variableset_var_age
Specify Sex or Gender Variableset_var_sexgender
Specify Time Variableset_var_time
P-Spline PriorSp
SVD-Based Prior for Age or Age-Sex ProfilesSVD
Dynamic SVD-Based Priors for Age Profiles or Age-Sex ProfilesSVD_AR SVD_AR1 SVD_RW SVD_RW2
Summarize Terms from a Fitted Modeltidy.bage_mod
Unfit a Modelunfit
Accidental Deaths in the USAus_acc_deaths