mae
From valmetrics v1.0.0
by Kristin Piikki
mae
Calculates the Mean absolute error (MAE) from observed and predicted values.
Usage
mae(o, p)
Arguments
- o
A numeric vector. Observed values.
- p
A numeric vector. Predicted values.
Details
Interpretation: smaller is better. Similar to RMSE but less sensitive to large errors.
Value
Mean absolute error (MAE).
References
Piikki K., Wetterlind J., Soderstrom M., Stenberg B. (2021). Perspectives on validation in digital soil mapping of continuous attributes. A review. Soil Use and Management. 10.1111/sum.12694
Examples
# NOT RUN {
obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
mae(o=obs, p=pred)
# }
Community examples
Looks like there are no examples yet.