get_roc {EGAD} | R Documentation

## Build receiver operating characteristic curve

### Description

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

### Usage

    get_roc(ranks, labels)

### Arguments

`ranks` | numeric array
`labels` | binary array

### Value

FPR,TPR numeric arrays

### Examples

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

[Package EGAD version 1.22.0 Index]