comb_CSR: All Possible Combinations Forecast Averaging

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/comb_CSR.R

Description

Combine different forecasts using complete subset regressions. Apart from the simple averaging, weights based on information criteria (AIC, corrected AIC, Hannan Quinn and BIC).

Usage

1

Arguments

x

An object of class foreccomb. Contains training set (actual values + matrix of model forecasts) and optionally a test set.

Details

OLS forecast combination is based on

obs_t = const + ∑_{i = 1}^p w_{i} \widehat{obs}_{it} + e_t,

where obs is the observed values and \widehat{obs} is the forecast, one out of the p forecasts available.

The function computes the complete subset regressions. So a matrix of forecasts based on all possible subsets of fhat is returned.

Those forecasts can later be cross-sectionally averaged (averaged over rows) to create a single combined forecast using weights which are based on the information criteria of the different individual regression, rather than a simple average.

Additional weight-vectors which are based on different information criteria are also returned. This is in case the user would like to perform the frequensit version of forecast averaging (see references for more details).

Although the function is geared towards forecast averaging, it can be used in any other application as a generic complete subset regression.

Value

Returns an object of class foreccomb_res with the following components:

Method

Returns the used forecast combination method.

Models

Returns the individual input models that were used for the forecast combinations.

Weights

Returns the combination weights based on the different information criteria.

Fitted

Returns the fitted values for each information criterion.

Accuracy_Train

Returns range of summary measures of the forecast accuracy for the training set.

Forecasts_Test

Returns forecasts produced by the combination method for the test set. Only returned if input included a forecast matrix for the test set.

Accuracy_Test

Returns range of summary measures of the forecast accuracy for the test set. Only returned if input included a forecast matrix and a vector of actual values for the test set.

Input_Data

Returns the data forwarded to the method.

Author(s)

Eran Raviv and Gernot R. Roetzer

References

Hansen, B. (2008). Least-squares forecast averaging Journal of Econometrics, 146(2), 342–350.

Kapetanios, G., Labhard V., Price, S. (2008). Forecasting Using Bayesian and Information-Theoretic Model Averaging. Journal of Business & Economic Statistics, 26(1).

Koenker R. (2005). Quantile Regression. Cambridge University Press.

Graham, E., Garganob, A., Timmermann, A. (2013). Complete subset regressions. Journal of Econometrics, 177(2), 357–373.

See Also

foreccomb, plot.foreccomb_res, summary.foreccomb_res, comb_NG, accuracy

Examples

1
2
3
4
5
6
7
8
9
obs <- rnorm(100)
preds <- matrix(rnorm(1000, 1), 100, 10)
train_o<-obs[1:80]
train_p<-preds[1:80,]
test_o<-obs[81:100]
test_p<-preds[81:100,]

data<-foreccomb(train_o, train_p, test_o, test_p)
comb_CSR(data)

ForecastComb documentation built on May 1, 2019, 9:16 p.m.