allmetrics {valmetrics}R Documentation

allmetrics

Description

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.

Usage

allmetrics(o, p, k)

Arguments

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.

Details

See respective functions.

Value

A data.frame with all validation metrics for which functions are defined in this package.

Author(s)

Kristin Piikki, Johanna Wetterlind, Mats Soderstrom and Bo Stenberg, E-mail: kristin.piikki@slu.se

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. doi: 10.1111/sum.12694

Examples

obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
allmetrics(o=obs, p=pred, k=2)

[Package valmetrics version 1.0.0 Index]