This function calculates Median Absolute Prediction Error (MAPE), which assesses the prediction performance with respect to point forecasts of a given model. It is calculated based on one-step ahead prediction and reforecasting.
MAPE(model, Xt, start = 0.8, plot = TRUE)
The MAPE calculated based on one-step ahead prediction and reforecasting is returned along with its standard deviation.
A time series model.
A vector
of time series data.
A numeric
indicating the starting proportion of the data
that is used for prediction.
A boolean
indicating whether a model accuracy plot based
on MAPE is returned or not.
Stéphane Guerrier and Yuming Zhang