Learn R Programming

SVMMaj (version 0.2.9)

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"))

Arguments

q

the predicted values

y

a list of the actual classes of q

Value

the area under the curve value

Examples

Run this code
# NOT RUN {
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