Learn R Programming

rtemis (version 0.79)

auc_pairs: Area under the Curve by pairwise concordance

Description

Get the Area under the ROC curve to assess classifier performance using pairwise concordance

Usage

auc_pairs(estimated.score, true.labels, verbose = TRUE)

Arguments

estimated.score

Float, Vector: Probabilities or model scores (e.g. c(.32, .75, .63), etc)

true.labels

True labels of outcomes (e.g. c(0, 1, 1))

verbose

Logical: If TRUE, print messages to output

Details

The first level of true.labels must be the positive class, and high numbers in estimated.score should correspond to the positive class.