Mean Arctangent Absolute Percentage Error

MAAPE(.resid, .actual, na.rm = TRUE, ...)

Arguments

.resid

A vector of residuals from either the training (model accuracy) or test (forecast accuracy) data.

.actual

A vector of responses matching the fitted values (for forecast accuracy, new_data must be provided).

na.rm

Remove the missing values before calculating the accuracy measure

...

Additional arguments for each measure.

References

Kim, Sungil and Heeyoung Kim (2016) "A new metric of absolute percentage error for intermittent demand forecasts". International Journal of Forecasting, 32(3), 669-679.