Package: BayesianDisaggregation 0.2.1
BayesianDisaggregation: Evidence-Based Bayesian Disaggregation of Aggregate Indices
Disaggregates an observed aggregate price index into sectoral components with a Bayesian state-space model in which the aggregate enters as a genuine observation density rather than as a renormalization identity. A random-walk-with-drift transition in log space (with partial pooling on the drift and the innovation scale) and an estimable cross-sectional concentration produce posterior draws of the sectoral indices with credible intervals, suitable as multiple-imputation input for downstream dynamic models. The Hamiltonian Monte Carlo engine follows Stan (Carpenter et al., 2017) <doi:10.18637/jss.v076.i01>; model comparison uses Pareto Smoothed Importance Sampling Leave-One-Out cross-validation (Vehtari, Gelman and Gabry, 2017) <doi:10.1007/s11222-016-9696-4>. A closed-form linear-Gaussian Kalman/RTS smoother provides an exact, MCMC-free Bayesian alternative for the same aggregate evidence.
Authors:
BayesianDisaggregation_0.2.1.tar.gz
BayesianDisaggregation_0.2.1.zip(r-4.7)BayesianDisaggregation_0.2.1.zip(r-4.6)BayesianDisaggregation_0.2.1.zip(r-4.5)
BayesianDisaggregation_0.2.1.tgz(r-4.6-any)BayesianDisaggregation_0.2.1.tgz(r-4.5-any)
BayesianDisaggregation_0.2.1.tar.gz(r-4.7-any)BayesianDisaggregation_0.2.1.tar.gz(r-4.6-any)
BayesianDisaggregation_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BayesianDisaggregation/json (API)
| # Install 'BayesianDisaggregation' in R: |
| install.packages('BayesianDisaggregation', repos = c('https://isadorenabi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/isadorenabi/bayesiandisaggregation/issues
Last updated from:c10bbf1b5a. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 173 | ||
| source / vignettes | OK | 257 | ||
| linux-release-x86_64 | OK | 147 | ||
| macos-release-arm64 | OK | 83 | ||
| macos-oldrel-arm64 | OK | 108 | ||
| windows-devel | OK | 166 | ||
| windows-release | OK | 169 | ||
| windows-oldrel | OK | 162 | ||
| wasm-release | OK | 155 |
Exports:align_disagg_inputsdisagg_default_priorsdisagg_stan_codedisaggregate_conjugatedisaggregate_from_filesdisaggregate_statespacelog_enableread_cpiread_weights_matrixsimulate_disagg
Dependencies:cellrangerclicpp11crayondplyrgenericsgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readxlrematchrlangstringistringrtibbletidyrtidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Align CPI and VAB weights on their common years | align_disagg_inputs |
| Default prior scales for the state-space disaggregation | disagg_default_priors |
| Stan code for the canonical disaggregation model | disagg_stan_code |
| Conjugate (closed-form) disaggregation baseline | disaggregate_conjugate |
| Evidence-based disaggregation directly from Excel files | disaggregate_from_files |
| Evidence-based Bayesian disaggregation (state-space; canonical engine) | disaggregate_statespace |
| Enable logging at a specific level | log_enable |
| Read CPI data from an Excel file | read_cpi |
| Read a weights matrix from an Excel file | read_weights_matrix |
| Simulate from the state-space disaggregation DGP | simulate_disagg |
