Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RMSE

Root-mean-squared-error of a fitted model


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

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

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

qpcR

Modelling and Analysis of Real-Time PCR Data

v1.4-1
GPL (>= 2)
Authors
Andrej-Nikolai Spiess <a.spiess@uke.uni-hamburg.de>
Initial release
2018-05-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.