auc | R Documentation |
Returns the area under the curve value as a fraction.
auc(q, y = attr(q, "y"))
q |
the predicted values |
y |
a list of the actual classes of |
the area under the curve value
df <- with(diabetes, cbind(y, X)) lm.y <- glm(y ~ ., data = df, family = binomial()) print(with(lm.y, auc(fitted.values, y)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.