This function implements some of the more used error metrics.
These metrics are "sMAPE", "MAPE", "MAE", "MSE" and they respectively versions with median
"sMdAPE", "MdAPE", "MdAE", "MdSE".
The statistic to be returned. Use "M" or "Md" for return the mean or median of the errors.
If "N" so a vector with all errors will be returned.
Details
The metric sMAPE is obtained using type = "sAPE" and statistic = "M"
The metric sMdAPE is obtained using type = "sAPE" and statistic = "Md"
The metric MAPE is obtained using type = "APE" and statistic = "M"
The metric MdAPE is obtained using type = "APE" and statistic = "Md"
The metric MAE is obtained using type = "AE" and statistic = "M"
The metric MdAE is obtained using codetype = "AE" and statistic = "Md"
The metric MSE is obtained using type = "SE" and statistic = "M"
The metric MdSE is obtained using type = "SE" and statistic = "Md"
Value
If statistic="M" or statistic="Md" it is returned the respectively error metric result.
If statistic="N" so is returned a vector with all errors points according to the chosen error type.