get_reconc_matrices | R Documentation |
Creates the aggregation and summing matrices for a temporal hierarchy of time series from a user-selected list of aggregation levels.
get_reconc_matrices(agg_levels, h)
agg_levels |
user-selected list of aggregation levels. |
h |
number of steps ahead for the bottom level forecasts. |
A list containing the named elements:
A
the aggregation matrix;
S
the summing matrix.
temporal_aggregation()
library(bayesRecon)
#Create monthly hierarchy
agg_levels <- c(1,2,3,4,6,12)
h <- 12
rec_mat <- get_reconc_matrices(agg_levels, h)
S <- rec_mat$S
A <- rec_mat$A
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.