View source: R/summary-forecast.R
mape | R Documentation |
This function computes MAPE given prediction result versus evaluation set.
mape(x, y, ...)
## S3 method for class 'predbvhar'
mape(x, y, ...)
## S3 method for class 'bvharcv'
mape(x, y, ...)
x |
Forecasting object |
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
.
Percentage error is defined by p_t = 100 e_t / Y_t
(100 can be omitted since comparison is the focus).
MAPE = mean(\lvert p_t \rvert)
MAPE 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.