powered by
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)
A list containing the named elements:
A the aggregation matrix;
A
S the summing matrix.
S
user-selected list of aggregation levels.
number of steps ahead for the bottom level forecasts.
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
Run the code above in your browser using DataLab