auc: Returns the area under the curve value

Description Usage Arguments Value Examples

View source: R/roccurve.R

Description

Returns the area under the curve value as a fraction.

Usage

1
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

1
2
3
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 2, 2019, 9:58 a.m.