Package: bage 0.8.2

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.8.2.tar.gz
bage_0.8.2.zip(r-4.5)bage_0.8.2.zip(r-4.4)bage_0.8.2.zip(r-4.3)
bage_0.8.2.tgz(r-4.4-x86_64)bage_0.8.2.tgz(r-4.4-arm64)bage_0.8.2.tgz(r-4.3-x86_64)bage_0.8.2.tgz(r-4.3-arm64)
bage_0.8.2.tar.gz(r-4.5-noble)bage_0.8.2.tar.gz(r-4.4-noble)
|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:
  • HFD - Components from Human Fertility Database
  • HMD - Components from Human Mortality Database
  • LFP - Components from OECD Labor Force Participation Data
  • isl_deaths - Deaths in Iceland
  • kor_births - Births in South Korea
  • nld_expenditure - Per Capita Health Expenditure in the Netherlands, 2003-2011
  • nzl_divorces - Divorces in New Zealand
  • nzl_households - People in One-Person Households in New Zealand
  • nzl_injuries - Fatal Injuries in New Zealand
  • usa_deaths - Accidental Deaths in the USA

On CRAN:

7.00 score 2 stars 38 scripts 164 downloads 41 exports 24 dependencies

Last updated 5 days agofrom:36bc66a706. Checks:ERROR: 4 OK: 5. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 13 2024
R-4.5-win-x86_64OKNov 13 2024
R-4.5-linux-x86_64OKNov 13 2024
R-4.4-win-x86_64OKNov 13 2024
R-4.4-mac-x86_64OKNov 13 2024
R-4.4-mac-aarch64OKNov 13 2024
R-4.3-win-x86_64ERRORNov 13 2024
R-4.3-mac-x86_64ERRORNov 13 2024
R-4.3-mac-aarch64ERRORNov 13 2024

Exports:ARAR1augmentcomponentscomputationsequationfitforecastgenerateis_fittedKnownLinLin_ARLin_AR1mod_binommod_normmod_poisNNFixreplicate_datareport_simRWRW_SeasRW2RW2_InfantRW2_Seasset_datamod_outcome_rr3set_dispset_n_drawset_priorset_var_ageset_var_sexgenderset_var_timeSpSVDSVD_ARSVD_AR1SVD_RWSVD_RW2tidyunfit

Dependencies:clicpp11fansigenericsgluelatticelifecyclemagrittrMatrixmatrixStatspillarpkgconfigpoputilsRcppRcppEigenrlangrvecsparseMVNtibbletidyselectTMButf8vctrswithr

Introduction

Rendered fromvig1_intro.Rmdusingknitr::rmarkdownon Nov 13 2024.

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

Mathematical Details

Rendered fromvig2_math.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-05
Started: 2023-06-23

Priors

Rendered fromvig3_priors.Rmdusingknitr::rmarkdownon Nov 13 2024.

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

Singular Value Decomposition

Rendered fromvig4_svd.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-09-27
Started: 2023-07-15

Bayesian Workflow

Rendered fromvig5_workflow.Rmdusingknitr::rmarkdownon Nov 13 2024.

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

Modelling Mortality

Rendered fromvig6_mortality.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-09-27
Started: 2023-07-15

Simulation

Rendered fromvig7_simulation.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-09-27
Started: 2024-09-27

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
Information on Computations Performed Duration Model Fittingcomputations
Data Modelsdatamods
Fit a Modelfit.bage_mod
Use a Model to Make a Forecastforecast.bage_mod
Generate Values from Priorsgenerate.bage_prior_ar generate.bage_prior_known generate.bage_prior_norm generate.bage_prior_normfixed generate.bage_prior_rw generate.bage_prior_rw2 generate.bage_prior_rwseasfix
Generate Random Age or Age-Sex Profilesgenerate.bage_ssvd
Components from Human Fertility DatabaseHFD
Components from Human Mortality DatabaseHMD
Test Whether a Model has Been Fittedis_fitted
Deaths in Icelandisl_deaths
Known PriorKnown
Births in South Koreakor_births
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
Per Capita Health Expenditure in the Netherlands, 2003-2011nld_expenditure
Divorces in New Zealandnzl_divorces
People in One-Person Households in New Zealandnzl_households
Fatal Injuries in New Zealandnzl_injuries
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 'Infant' IndicatorRW2_Infant
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 USAusa_deaths