calcAUC: Fast computation of the AUC w.r.t. to the ROC.

View source: R/utils.R

calcAUCR Documentation

Fast computation of the AUC w.r.t. to the ROC.

Description

This function computes the area under the receiver operating characteristic curve.

Usage

calcAUC(preds, y, fast = TRUE, sorted = FALSE)

Arguments

preds

Numeric vector of predicted scores

y

True binary outcomes coded as 0 or 1. Must be an integer vector.

fast

Shall the computation be as fast as possible?

sorted

Are the predicted scores already sorted increasingly? If so, this can slightly speed up the computation.

Value

The AUC between 0 and 1


logicDT documentation built on Jan. 14, 2023, 5:06 p.m.