| AUC {sROC} | R Documentation |
Compute the area under curve of estimated ROC curve.
AUC(ROC, method="Simpson", ngrid=256)
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. |
Compute the area under curve of estimated ROC curve.
An object of class “AUC”.
X.F. Wang wangx6@ccf.org
kROC.
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)