auc: Area under the ROC curve

View source: R/auc.R

aucR Documentation

Area under the ROC curve

Description

Computes the area under the ROC curve in models with binary responses.

Usage

auc(o, p)

Arguments

o

Numeric vector with observations, must have the same length as p.

p

Numeric vector with predictions, must have the same length as o.

Value

Numeric, AUC value.

Examples

if(interactive()){

 out <- auc(
   o = c(0, 0, 1, 1),
   p = c(0.1, 0.6, 0.4, 0.8)
   )

}

spatialRF documentation built on Aug. 19, 2022, 5:23 p.m.

Related to auc in spatialRF...