This function computes the area under the receiver operating characteristic curve.
calcAUC(preds, y, fast = TRUE, sorted = FALSE)
The AUC between 0 and 1
Numeric vector of predicted scores
True binary outcomes coded as 0 or 1. Must be an integer vector.
Shall the computation be as fast as possible?
Are the predicted scores already sorted increasingly? If so, this can slightly speed up the computation.