Internal function that performs the core reconciliation logic for the BUIS method, which reconciles forecasts using importance sampling based on both hierarchical and equality constraints through a Bayesian framework.
.core_reconc_BUIS(
A,
H,
G,
B,
upper_base_fc_H,
in_typeH,
distr_H,
upper_base_fc_G,
in_typeG,
distr_G,
.comp_w = .compute_weights,
suppress_warnings = FALSE,
return_upper = TRUE
)A list containing:
bottom_rec: List with reconciled bottom forecasts (pmf and/or samples).
upper_rec_H: List with reconciled upper forecasts for H constraints.
upper_rec_G: List with reconciled upper forecasts for G constraints.
Matrix defining the overall hierarchy.
Matrix defining hierarchical constraints.
Matrix defining general linear constraints.
Matrix of bottom level base forecast samples.
List of upper base forecasts for hierarchical constraints.
Character string specifying input type for H forecasts ('pmf', 'samples', or 'params').
Character string specifying distribution type for H forecasts ('poisson' or 'nbinom').
List of upper base forecasts for general constraints.
Character string specifying input type for G forecasts ('pmf', 'samples', or 'params').
Character string specifying distribution type for G forecasts ('poisson' or 'nbinom').
Function to compute weights for importance sampling. Default is .compute_weights.
Logical. If TRUE, suppresses warnings about sample quality. Default is FALSE.