| tebu | R Documentation |
Temporal bottom-up reconciled forecasts at any temporal aggregation level are
computed by appropriate aggregation of the high-frequency base forecasts,
\widehat{\mathbf{x}}^{[1]}:
\widetilde{\mathbf{x}} =
\mathbf{S}_{te}\widehat{\mathbf{x}}^{[1]},
where \mathbf{S}_{te} is
the temporal structural matrix.
tebu(base, agg_order, tew = "sum", sntz = FALSE, round = FALSE)
base |
A ( |
agg_order |
Highest available sampling frequency per seasonal cycle
(max. order of temporal aggregation, |
tew |
A string specifying the type of temporal aggregation. Options
include: " |
sntz |
Logical. If |
round |
Logical. If |
A (h(k^\ast+m) \times 1) numeric vector of temporal
reconciled forecasts.
Di Fonzo, T. and Girolimetto, D. (2023), Spatio-temporal reconciliation of solar forecasts, Solar Energy, 251, 13–29. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.solener.2023.01.003")}
Bottom-up reconciliation:
csbu(),
ctbu()
Temporal framework:
teboot(),
tecov(),
telcc(),
temo(),
temvn(),
terec(),
tesmp(),
tetd(),
tetools()
set.seed(123)
# (4 x 1) high frequency base forecasts vector (simulated),
# agg_order = 4 (annual-quarterly)
hfts <- rnorm(4, 5)
reco <- tebu(base = hfts, agg_order = 4)
# Non negative reconciliation
hfts[4] <- -hfts[4] # Making negative one of the quarterly base forecasts
nnreco <- tebu(base = hfts, agg_order = 4, sntz = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.