powered by
Calculates the root mean square error
rmse(...)# S3 method for default rmse(actual, predicted, ...)# S3 method for lm rmse(modelObject, ...)# S3 method for glm rmse(modelObject, ...)
# S3 method for default rmse(actual, predicted, ...)
# S3 method for lm rmse(modelObject, ...)
# S3 method for glm rmse(modelObject, ...)
additional parameters to be passed the the s3 methods
A vector of the labels
A vector of predicted values
the model object. Currently supported lm
lm
# NOT RUN { data(testDF) glmModel <- glm(y ~ ., data = testDF, family="binomial") Preds <- predict(glmModel, type = 'response') rmse(testDF$y, Preds) # }
Run the code above in your browser using DataLab