agg_mat: A (na×nb) numeric matrix representing the cross-sectional aggregation matrix. It maps the nb bottom-level (free) variables into the na upper (constrained) variables.
cons_mat: A (na×n) numeric matrix representing the cross-sectional zero constraints. It spans the null space for the reconciled forecasts.
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.
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).
fh: Forecast horizon for the lowest frequency (most temporally aggregated) time series (default is 1).
sparse: Option to return sparse matrices (default is TRUE).
Returns
A list with four elements: - dim: A vector containing information about the number of series for the complete system (n), for upper levels (na) and bottom level (nb), the maximum aggregation order (m), the number of factor (p), the partial (ks) and total sum (kt) of factors.
set: The vector of the temporal aggregation orders (in decreasing order).
agg_mat: The cross-temporal aggregation matrix.
strc_mat: The cross-temporal structural matrix.
cons_mat: The cross-temporal zero constraints matrix.
Examples
# Cross-temporal frameworkA <- t(c(1,1))# Aggregation matrix for Z = X + Ym <-4# from quarterly to annual temporal aggregationcttools(agg_mat = A, agg_order = m)