Learn R Programming

BayesianDisaggregation (version 0.1.2)

Bayesian Methods for Economic Data Disaggregation

Description

Implements a novel Bayesian disaggregation framework that combines Principal Component Analysis (PCA) and Singular Value Decomposition (SVD) dimension reduction of prior weight matrices with deterministic Bayesian updating rules. The method provides Markov Chain Monte Carlo (MCMC) free posterior estimation with built-in diagnostic metrics. While based on established PCA (Jolliffe, 2002) and Bayesian principles (Gelman et al., 2013) , the specific integration for economic disaggregation represents an original methodological contribution.

Copy Link

Version

Install

install.packages('BayesianDisaggregation')

Monthly Downloads

204

Version

0.1.2

License

MIT + file LICENSE

Maintainer

José Mauricio Gómez Julián

Last Published

October 16th, 2025

Functions in BayesianDisaggregation (0.1.2)

stability_composite

Composite stability score (numerical and temporal)
temporal_stability

Temporal stability (smoothness over time)
numerical_stability_exp

Numerical stability (exponential penalty)
log_enable

Enable logging at a specific level
bayesian_disaggregate

Run Bayesian disaggregation
posterior_multiplicative

Multiplicative posterior (Hadamard product + renormalization)
log_msg

Log message with timestamp
posterior_adaptive

Adaptive posterior based on sector volatility
compute_L_from_P

Compute likelihood vector from a prior matrix via SVD (center-only, robust)
posterior_dirichlet

Dirichlet-conjugate posterior (analytical mean)
interpretability_score

Interpretability score (structure preservation + plausibility)
run_grid_search

Run grid search for parameter optimization (parallel PSOCK)
read_weights_matrix

Read a weights matrix from an Excel file
posterior_weighted

Weighted-average posterior (convex combination)
read_cpi

Read CPI data from an Excel file
spread_likelihood

Spread a likelihood vector across time with a chosen temporal pattern
save_results

Save disaggregation results to disk
coherence_score

Coherence score (prior → posterior alignment improvement)