Description Usage Arguments Details Value Author(s) References Examples
Calculates 31 different validation metrics from observed values and predicted values. For the calculation of some metrics also the number of model parameters are used.
1 | allmetrics(o, p, k)
|
o |
A numeric vector. Observed values. |
p |
A numeric vector. Predicted values. |
k |
A number. The number of parameters in the model. Note that k includes the intercept, so for example, k is 2 for a linear regression model. |
See respective functions.
A data.frame with all validation metrics for which functions are defined in this package.
Kristin Piikki, Johanna Wetterlind, Mats Soderstrom and Bo Stenberg, E-mail: kristin.piikki@slu.se
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
1 2 3 | obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
allmetrics(o=obs, p=pred, k=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.