This function provides an approximation of the temporal base forecasts errors covariance matrix using different reconciliation methods (see Di Fonzo and Girolimetto, 2023).
comb: A string specifying the reconciliation method.
Ordinary least squares:
"ols" (default) - identity error covariance.
Weighted least squares:
"str" - structural variances.
"wlsh" - hierarchy variances (uses res).
"wlsv" - series variances (uses res).
Generalized least squares (uses res):
"acov" - series auto-covariance.
"strar1" - structural Markov covariance.
"sar1" - series Markov covariance.
"har1" - hierarchy Markov covariance.
"shr"/"sam" - shrunk/sample covariance.
agg_order: Highest available sampling frequency per seasonal cycle (max. order of temporal aggregation, m), or a vector representing a subset of p factors of m.
res: A (N(k∗+m)×1) optional numeric vector containing the in-sample residuals at all the temporal frequencies ordered from the lowest frequency to the highest frequency. This vector is used to compute come covariance matrices.
tew: A string specifying the type of temporal aggregation. Options include: "sum" (simple summation, default), "avg" (average), "first" (first value of the period), and "last" (last value of the period).
mse: If TRUE (default) the residuals used to compute the covariance matrix are not mean-corrected.
shrink_fun: Shrinkage function of the covariance matrix, shrink_estim (default)
Di Fonzo, T. and Girolimetto, D. (2023), Cross-temporal forecast reconciliation: Optimal combination method and heuristic alternatives, International Journal of Forecasting, 39, 1, 39-57. tools:::Rd_expr_doi("10.1016/j.ijforecast.2021.08.004")