HybridForecaster: Forecast methods for covariate matrix

Description Usage Arguments Value Examples

View source: R/HybridForecaster.R

Description

Implements 3 types of forecasting methods for time series: single stands for auto.arima for each series individually; multi stands for VAR (vector autoregression) with default lag order 2; true stands for forecasting using the true X process specified.

Usage

1
HybridForecaster(X.fitting, horizon, datatype, parameters.of.X)

Arguments

X.fitting

a matrix. The original training X matrix for forecast, DAT$X.for.fcst (10 series)

horizon

a number. Forecast horizon.

datatype

a string. Choose from 'simple', 'block1', 'block2'. Should be consistent with the true datatype used for simulation.

parameters.of.X

a list. The one that has been used for simulation.

Value

a list of components

single

a matrix. Forecast values for each series produced by single method. Size should be horizon * nseries, 7 by 10

multi

a matrix. Forecast values for each series produced by multi method.

true

a matrix. Forecast values for each series produced by true method.

Examples

1
#' ##

yymmhaha/PackPaper1 documentation built on May 24, 2019, 8:55 a.m.