aucroc: Calculate Area Under ROC Curve

Description Usage Arguments Value Examples

Description

Calculate Area Under ROC Curve

Usage

1
aucroc(target, score)

Arguments

target

A numeric binary vector (0, 1)

score

A numeric vector containing scores or probabilities

Value

The AUROC Curve

Examples

1
2
3
4
5
6
data(predictions)

score <- predictions$score
target <- predictions$target

aucroc(target, score)

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.