Learn R Programming

SVMMaj (version 0.2.9.3)

auc: Returns the area under the curve value

Description

Returns the area under the curve value as a fraction.

Usage

auc(q, y = attr(q, "y"))

Value

the area under the curve value

Arguments

q

the predicted values

y

a list of the actual classes of q

Examples

Run this code
df <- with(diabetes, cbind(y, X))
lm.y <- glm(y ~ ., data = df, family = binomial())
print(with(lm.y, auc(fitted.values, y)))

Run the code above in your browser using DataLab