valmetrics (version 1.0.0)

nmse: nmse

Description

Calculates the Normalized mean squared error (NMSE) from observed and predicted values.

Usage

nmse(o, p)

Arguments

o

A numeric vector. Observed values.

p

A numeric vector. Predicted values.

Value

Normalized mean squared error (NMSE)

Details

Interpretation: smaller is better.

References

Park S. J., Vlek P. L. G. 2002. Environmental correlation of three-dimensional soil spatial variability: a comparison of three adaptive techniques. Geoderma, 109(1-2), 117-140.

Examples

Run this code
# NOT RUN {
obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
nmse(o=obs, p=pred)
# }

Run the code above in your browser using DataLab