smape {valmetrics} | R Documentation |
smape
Description
Calculates the Symmetrical mean percentage error (SMAPE) from observed and predicted values.
Usage
smape(o, p)
Arguments
o |
A numeric vector. Observed values. |
p |
A numeric vector. Predicted values. |
Details
Interpretation: smaller is better.
Value
Symmetrical mean percentage error (SMAPE)
Author(s)
Kristin Piikki, Johanna Wetterlind, Mats Soderstrom and Bo Stenberg, E-mail: kristin.piikki@slu.se
References
Forkuor G., Hounkpatin O. K., Welp G., Thiel, M. 2017. High resolution mapping of soil properties using remote sensing variables in south-western Burkina Faso: a comparison of machine learning and multiple linear regression models. PloS one, 12(1), e0170478.
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. doi: 10.1111/sum.12694
Examples
obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
smape(o=obs, p=pred)