RMSE: Root-mean-squared-error of a fitted model

Description Usage Arguments Details Value Author(s) Examples

Description

Calculates the root-mean-squared-error (RMSE) for objects of class nls, lm, glm, drc or any other models from which residuals can be extacted.

Usage

1
RMSE(object, which = NULL)

Arguments

object

a fitted model.

which

a subset of the curve to be used for RMSE calculation. If not defined, the complete curve is used.

Details

RMSE = √{\overline{(y_i-\hat{y}_i)^2}}

Value

The root-mean-squared-error from the fit or a part thereof.

Author(s)

Andrej-Nikolai Spiess

Examples

1
2
3
## For a curve subset.
m1 <- pcrfit(reps, 1, 2, l5)
RMSE(m1, 10:15)

Example output

Loading required package: MASS
Loading required package: minpack.lm
Loading required package: rgl
Loading required package: robustbase
Loading required package: Matrix
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
[1] 0.05336004

qpcR documentation built on May 2, 2019, 5:17 a.m.

Related to RMSE in qpcR...