auroc_analytic: Area under the receiver operating characteristic curve

Description Usage Arguments Value Examples

View source: R/auroc_analytic.R

Description

The function calculates the area under the receiver operating characteristic (ROC) curve analytically

Usage

1

Arguments

scores

numeric array

labels

binary array

Value

auroc Numeric value

Examples

1
2
3
4
labels <- c(rep(0,10))
labels[c(1,3,5)] <- 1 
scores <- 10:1
auroc <- auroc_analytic(scores, labels)

EGAD documentation built on Sept. 8, 2017, 2:01 a.m.