auc: AUC

Description Usage Arguments Value Author(s) Examples

Description

Area under the ROC curve. Calculated in various ways. Fastest is auc(), currently set to aucRank(). RLoop() only supports oriented=FALSE

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
auc(...)

aucPROC(y, y.hat, oriented = FALSE)

aucWilcox(y, y.hat, oriented = FALSE)

aucRank(y, y.hat, oriented = FALSE)

aucRLoop(y, y.hat, oriented = FALSE)

aucRapply(y, y.hat, oriented = FALSE)

aucROCR(y, y.hat, oriented = FALSE)

aucHmisc(y, y.hat, oriented = FALSE)

Arguments

y.hat

numeric. risk between 0 and 1.

y

numeric. Status yes=1, no=0 or dead=1, alive=0.

oriented

logical. If FALSE (default) returned AUC always 0.5.

...

Pass arguments. If TRUE: Probability that higher y.hat correspond to higher y.

Value

numeric.

Author(s)

Andi Boeck

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
y.hat <- seq(0,1,length=100)
 y <- rbinom(100, size=1, prob=1-y.hat)
 aucRank(y=y, y.hat=y.hat, oriented=TRUE)
 aucRLoop(y=y, y.hat=y.hat, oriented=TRUE)
 aucPROC(y=y, y.hat=y.hat, oriented=TRUE)
 aucHmisc(y=y, y.hat=y.hat, oriented=TRUE)
 aucWilcox(y=y, y.hat=y.hat, oriented=TRUE)
 aucRapply(y=y, y.hat=y.hat, oriented=TRUE)
 aucPROC(y=y, y.hat=y.hat, oriented=FALSE)
 aucRank(y=y, y.hat=y.hat, oriented=FALSE)
 aucRLoop(y=y, y.hat=y.hat, oriented=FALSE)
 aucHmisc(y=y, y.hat=y.hat, oriented=FALSE)
 aucWilcox(y=y, y.hat=y.hat, oriented=FALSE)
 aucRapply(y=y, y.hat=y.hat, oriented=FALSE)

Atools documentation built on May 2, 2019, 6:30 p.m.

Related to auc in Atools...