get_roc: Build receiver operating characteristic curve

Description Usage Arguments Value Examples

View source: R/get_roc.R

Description

The function calculates the FPR and TRPR for the receiver operating characteristic (ROC)

Usage

1
get_roc(scores, labels)

Arguments

scores

numeric array

labels

binary array

Value

FPR,TPR numeric arrays

Examples

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

sarbal/EGAD documentation built on Jan. 20, 2018, 8:29 p.m.