Learn R Programming

soilassessment (version 0.3.0)

predAccuracy: A function for accuracy assessment between an array of two variables

Description

This function calculates statistical indices for accuracy between an array of two variables such as calibration and validation vectors. The indices are Bias, RMSE, R-squared, and NSE

Usage

predAccuracy(x,y)

Value

A table of four variables: bias, RMSE, Rsquared, and NSE

Arguments

x

a numeric vector of first variable of the two variables for accuracy assessment

y

a numeric vector of second variable of the two variables for accuracy assessment

Author

Christian Thine Omuto

Details

The function calculates four indices for accuracy: bias, root mean square error (RMSE), r-squared, Nash-sutcliffe efficiency (NSE)

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. 1988. The New S Language. Wadsworth & Brooks/Cole.

Nash, J. E.; Sutcliffe, J. V. (1970). "River flow forecasting through conceptual models part I — A discussion of principles". Journal of Hydrology. 10 (3): 282–290

See Also

predUncertain, featureRep

Examples

Run this code
xy=data.frame(a=c(2,3,4,5,6,7,8,9),b=c(1,1.5,8,10,12,3.5,NA,18))
predAccuracy(xy$a,xy$b)$Rsquared

Run the code above in your browser using DataLab