auc {ModelMetrics} | R Documentation |
Calculates the area under the curve for a binary classifcation model
auc(actual, predicted)
actual |
A vector of the labels. Can be |
predicted |
A vector of predicted values |
data(testDF) glmModel <- glm(y ~ ., data = testDF, family="binomial") Preds <- predict(glmModel, type = 'response') auc(testDF$y, Preds)