Rather than returning points corresponding to every cutoff, only returns a representative sample of equally-spaced points along the curve.
getroc(y, ypred, cv = NULL, res = 100)
list containing: spec, specificity for res points in every cv fold; sens, sensitivity for res points in every cv fold; auc, areas under the curve for each fold and average (note length is 1 greater than number of CV folds); se, standard error for AUC in each fold and standard error for average auc (note length is 1 greater than number of CV folds)
class labels, 0/1 or logical
predictions Pr(Y=1), numeric vector
cross-validation fold assignments, if relevant. Changes estimate of standard error.
resolution. Returns this many equally-spaced points along the curve. Set res to null to return all points.
SE of AUROC with no CV structure is from Hanley and McNeil 1982. SE of AUROC with CV folds is from LeDell et al 2012
Does not plot anything. Object can be plotted in a default way.