Some useful tools for the cross-sectional reconciliation of linearly and hierarchically constrained time series
Usage
hts_tools(C, h = 1, Ut, nb, sparse = TRUE)
Arguments
C
(na x nb) cross-sectional (contemporaneous) matrix mapping the bottom
level series into the higher level ones.
h
Forecast horizon (default is 1).
Ut
(na x n) zero constraints cross-sectional (contemporaneous) kernel
matrix \(\textbf{U}'\textbf{Y} = \mathbf{0}_{\left[n_a \times (k^*+m)\right]}\)
spanning the null space valid for the reconciled forecasts. It can be used instead of
parameter C, but needs nb (n = na + nb).
nb
Number of bottom time series; if C is present, nb is not used.
sparse
Option to return sparse object (default is TRUE).
Value
A list of five elements:
S
(n x nb) cross-sectional (contemporaneous) summing matrix.
Ut
(na x n) zero constraints cross-sectional (contemporaneous)
kernel matrix.