Description Usage Arguments Value References
Combines forecasting methods based on the validation error. See Nowotarski, J., Raviv, E., Tr\"uck, S., and Weron, R. (2014) for more examples.
1 2 3 4 5 6 7 8 9 | weighted_average(
val_hat,
val_true,
y_hat,
error_fun = "rmse",
weight_fun = "inverse",
pool_limit = 3,
...
)
|
val_hat |
forcasts on the validation set |
val_true |
true values of the validation set |
y_hat |
forecasts for the test set |
weight_fun |
the function to determine the weights |
pool_limit |
how many methods should be considered for combination |
... |
not used |
error_measure |
error measure to be used for error calculation; error measures that calculate errors per horizons will lead to a horizon specific combination, error measures over all horizons on the other hand, will lead to a simple weighted combination. |
combined forecasts using imrse for weighting
Nowotarski, J., Raviv, E., Tr\"uck, S., and Weron, R. (2014). An Empirical Comparison of Alternative Schemes for Combining Electricity Spot Price Forecasts. Energy Economics, 46, 395–412.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.