Learn R Programming

ChemometricsWithR (version 0.1.13)

Error: Often-used error functions

Description

Error functions for classification and regression

Usage

rms(x, y)
err.rate(x, y)

Arguments

x, y

True or predicted values, either numbers or factors.

Value

Function rms returns the root-mean-square error for real-valued x and y vectors. Function err.rate returns the fraction of non-matching cases in x and y (real numbers or factors).

References

R. Wehrens. "Chemometrics with R - Multivariate Data Analysis in the Natural Sciences and Life Sciences". Springer, Heidelberg, 2011.