1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mse.R
\name{rmse}
\alias{rmse}
\alias{rmse.default}
\alias{rmse.lm}
\alias{rmse.glm}
\title{Root-Mean Square Error}
\usage{
rmse(...)
\method{rmse}{default}(actual, predicted, ...)
\method{rmse}{lm}(modelObject, ...)
\method{rmse}{glm}(modelObject, ...)
}
\arguments{
\item{\dots}{additional parameters to be passed the the s3 methods}
\item{actual}{A vector of the labels}
\item{predicted}{A vector of predicted values}
\item{modelObject}{the model object. Currently supported \code{lm}}
}
\description{
Calculates the root mean square error
}
\examples{
data(testDF)
glmModel <- glm(y ~ ., data = testDF, family="binomial")
Preds <- predict(glmModel, type = 'response')
rmse(testDF$y, Preds)
}
|