## S3 method for class 'gts':
forecast(object, h,
method = c("comb", "bu", "mo", "tdgsf", "tdgsa", "tdfp", "all"),
fmethod = c("ets", "rw", "arima"), level, positive = FALSE,
xreg = NULL, newxreg = NULL, ...)gtsmethod="mo")fmethod = "arima", a vector or matrix of external regressors, which must have the same number of rows as the original univariate time seriesfmethod = "arima", a vector or matrix of external regressors, which must have the same number of rows as the original univariate time seriesets or auto.arimagts."mo" uses bottom-up ("bu") for levels higher than level
and top-down forecast proportions ("tdfp") for levels lower than level. For non-hierarchical grouped data, only bottom-up and combination methods are possible, as any method involving top-down disaggregation requires a hierarchical ordering of groups.R. J. Hyndman, R. A. Ahmed, G. Athanasopoulos and H.L. Shang (2011)
Optimal combination forecasts for hierarchical time series.
Computational Statistics and Data Analysis, 55(9), 2579--2589.
Gross, C. and Sohl, J. (1990) Dissagregation methods to expedite product line forecasting, Journal of Forecasting, 9, 233-254.
hts, gts, plot.gts, accuracy.gtsforecast(htseg1, h = 10, method = "bu")Run the code above in your browser using DataLab