AUC: Area under the Curve of ROC

Description Usage Arguments Value Examples

Description

Area under the Curve of ROC

Usage

1
  AUC(x, y)

Arguments

x

sorted numeric vector. The x-coordinates of the ROC curve.

y

numeric vector. The y-coordinates corresponding to x of the ROC curve.

Value

numeric value, the AUC of the ROC curve.

Examples

1
2
3
4
5
n <- 10^5
pred.x <- rnorm(n)
true.x <- runif(n) < 1 / (1 + exp(-pred.x))
roc <- ROC(true.x, pred.x)
auc <- AUC(roc$x, roc$y)

wush978/FastROC documentation built on May 4, 2019, 12:01 p.m.