auc: Returns the area under the curve value

View source: R/roccurve.R

aucR Documentation

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

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


SVMMaj documentation built on May 23, 2022, 9:05 a.m.