AUROC: Compute area under the ROC curve

Description Usage Arguments Details Value

Description

Function for computing the area under the ROC curve (AUROC)

Usage

1
AUROC(p, y, plot_roc = TRUE, warn_inv = TRUE)

Arguments

p

vector of scores. Can be sparse (from package Matrix), but will be coerced to dense.

y

vector of labels (0 or 1). Can be sparse (from package Matrix), but will be coerced to dense.

plot_roc

if TRUE, plots the ROC curve.

warn_inv

raises a warning if high values of p are associated with the 0 label, which produces an AUROC lower than 0.5.

Details

It is assumed that a higher score increases the probability of an object having label 1.

Value

The value of the AUROC.


miguelbiron/threepRop documentation built on May 29, 2019, 9:31 a.m.