Mean Arctangent Absolute Percentage Error

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



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


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


Remove the missing values before calculating the accuracy measure


Additional arguments for each measure.


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.