

In this article, we discuss and compare the MAPE() function from both packages. You only need to provide the predicted and actual values, and the MAPE() function will return the Mean Absolute Percentage Error. The easiest way to calculate the Mean Absolute Percentage Error is by using the MAPE() function from either the Metrics or ie2misc package. It measures the average absolute error in percentage between predicted values and actual (i.e., observed) values.īut, how do you calculate the Mean Absolute Percentage Error (MAPE) in R? In this article, we show 3 easy ways to calculate the Mean Absolute Percentage Error (MAPE) in R.īesides the Mean Absolute Error (MAE), the Mean Absolute Percentage Error (MAPE) is one of the most used metrics to validate model performance.
