msgarchelm_NG {MSGARCHelm} | R Documentation |
Newbold and Granger MS-GARCH-ELM Combination
Description
Computes time series volatility forecast combination of MS-GARCH and ELM model according to the approach by Newbold and Granger (1974) and evaluate its performance.
Usage
msgarchelm_NG(data, stepahead = 10, nlags = 5, modelcomb =
c("sGARCH", "gjrGARCH"), distcomb = c("norm", "std"), freq =
frequency(data), hn = 10, est = c("lm"), rep = 20,
combt = c("mean"))
Arguments
data |
Univariate time series data. |
stepahead |
The forecast horizon. |
nlags |
Lags of the data to use as inputs in the Extreme Learning Machine (ELM). |
modelcomb |
Combination of volatility models in two different regimes in the MS-GARCH model. Valid models are "sARCH", "sGARCH", "eGARCH", "gjrGARCH", and "tGARCH". Default: modelcomb=c("sGARCH", "gjrGARCH"). |
distcomb |
List with element distribution in the MS-GARCH model. distribution is a character vector (of size 2) of conditional distributions. Valid distributions are "norm", "snorm", "std", "sstd", "ged", and "sged". Default: distcomb=c("norm", "std"). |
freq |
Frequency of the time series. |
hn |
Number of hidden nodes in the ELM model. |
est |
Estimation type for output layer weights in the ELM. Can be "lasso" (lasso with CV), "ridge" (ridge regression with CV), "step" (stepwise regression with AIC) or "lm" (linear regression). Default: est=c("lm"). |
rep |
Number of networks to train, the result is the ensemble forecast in the ELM. |
combt |
Combination operator for forecasts in the ELM model when rep > 1. Can be "median", "mode" (based on KDE estimation) and "mean". Default: combt=c("mean"). |
Details
It gives the combined volatility forecast of Markov Switching GARCH model and Extreme Learning machine model based on Newbold and Granger (1974) approach. Here MS-GARCH model is restricted to two regime. The Newbold and Granger (1974) approach extracts the combination weights from the estimated mean squared prediction error matrix.
Value
$ fcast_comb: Forecasted value of combined model. $accuracy_combined: Performance matrices of the combined model.
References
Hsiao, C., and Wan, S. K. (2014). Is There An Optimal Forecast Combination? Journal of Econometrics, 178(2), 294–309.
Newbold, P., and Granger, C. W. J. (1974). Experience with Forecasting Univariate Time Series and the Combination of Forecasts. Journal of the Royal Statistical Society, Series A, 137(2), 131–165.
Examples
library(MSGARCHelm)
data(ReturnSeries_data)
msgarchelm_NG(ReturnSeries_data)