AUC: Area Under Curve

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sROC.R

Description

Compute the area under curve of estimated ROC curve.

Usage

1
 AUC(ROC, method="Simpson", ngrid=256)

Arguments

ROC

a “ROC” object generated by kROC(...).

method

a character string giving the numerical integration method to be used. This must be either “Simpson” or “Trapez”.

ngrid

the number of grids for numerical integration.

Details

Compute the area under curve of estimated ROC curve.

Value

An object of class “AUC”.

Author(s)

X.F. Wang wangx6@ccf.org

See Also

kROC.

Examples

1
2
3
4
5
6
7
8
9
set.seed(100)
n <- 200
x <- rlnorm(n, mean=2, sd=1)
y <- rnorm(n,mean=2,sd=2)

xy.ROC <- kROC(c(x,NA,NA),c(y,1.2, NA), na.rm=TRUE)
plot(xy.ROC)
AUC(xy.ROC)
	

sROC documentation built on May 1, 2019, 10:24 p.m.

Related to AUC in sROC...