comb_GLMNET.RdComputes forecast combination weights using GLMNET Regression (OLS) regression.
comb_GLMNET(x, custom_error = NULL)Returns an object of class ForecastComb::foreccomb_res with the following components:
Returns the best-fit forecast combination method.
Returns the individual input models that were used for the forecast combinations.
Returns the combination weights obtained by applying the combination method to the training set.
Returns the intercept of the linear regression.
Returns the fitted values of the combination method for the training set.
Returns range of summary measures of the forecast accuracy for the training set.
Returns forecasts produced by the combination method for the test set. Only returned if input included a forecast matrix for the test set.
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.
Returns the data forwarded to the method.
The function integrates the GLMNET Regression forecast combination implementation of the ForecastCombinations package into ForecastComb.
The results are stored in an object of class 'ForecastComb::foreccomb_res', for which separate plot and summary functions are provided.