Debian Codegraph @

man/rmse.Rd

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