AUC: Area Under Curve

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

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)
	


Search within the sROC package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.