View source: R/summary-forecast.R
relmae | R Documentation |
This function computes RelMAE given prediction result versus evaluation set.
relmae(x, pred_bench, y, ...)
## S3 method for class 'predbvhar'
relmae(x, pred_bench, y, ...)
## S3 method for class 'bvharcv'
relmae(x, pred_bench, y, ...)
x |
Forecasting object to use |
pred_bench |
The same forecasting object from benchmark model |
y |
Test data to be compared. should be the same format with the train data. |
... |
not used |
Let e_t = y_t - \hat{y}_t
.
RelMAE implements MAE of benchmark model as relative measures.
Let MAE_b
be the MAE of the benchmark model.
Then
RelMAE = \frac{MAE}{MAE_b}
where MAE
is the MAE of our model.
RelMAE vector corresponding to each variable.
Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679-688.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.