AUC {ROC} | R Documentation |
various functionals of ROC curves
AUC(rocobj) pAUC(rocobj,t0)
rocobj |
element of class rocc |
t0 |
FPR point at which TPR is evaluated or limit in (0,1) to integrate to |
AUC employs trapezoidal rule. AUCi uses integrate().
set.seed(123) R1 <- rocdemo.sca( rbinom(40,1,.3), rnorm(40), dxrule.sca, caseLabel="new case", markerLabel="demo Marker" ) print(AUC(R1)) print(pAUC(R1,.3)) print(pAUCi(R1,.3)) print(ROC(R1,.3))