powered by
Calculate the area under the curve.
auc(x, ...)
returns the area under the curve for a roc class object.
roc
object of class roc.
other arguments (none are used at the moment).
Mathijs Deen
a <- roc(QIDS$QIDS, QIDS$depression, c("Yes","No"), "Yes") auc(a)
Run the code above in your browser using DataLab