https://github.com/cran/qpcR
Tip revision: d62490d049dfea2898d787edaf708e731cd738fd authored by Andrej-Nikolai Spiess on 10 December 2011, 00:00:00 UTC
version 1.3-7.1
version 1.3-7.1
Tip revision: d62490d
RMSE.Rd
\name{RMSE}
\alias{RMSE}
\title{Root-mean-squared-error of a fitted model}
\description{
Calculates the root-mean-squared-error (RMSE) for objects of class \code{nls}, \code{lm}, \code{glm}, \code{drc} or any other models from which \code{\link{residuals}} can be extacted.
}
\usage{
RMSE(object, which = NULL)
}
\arguments{
\item{object}{a fitted model.}
\item{which}{a subset of the curve to be used for RMSE calculation. If not defined, the complete curve is used.}
}
\details{
\deqn{RMSE = \sqrt{\overline{(y_i-\hat{y_i})^2}}}
}
\value{
The root-mean-squared-error from the fit or a part thereof.
}
\author{
Andrej-Nikolai Spiess
}
\examples{
## for a part of the curve
m1 <- pcrfit(reps, 1, 2, l5)
RMSE(m1, 10:15)
}
\keyword{models}
\keyword{nonlinear}