auroc_analytic {EGAD} | R Documentation

## Area under the receiver operating characteristic curve

### Description

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

### Usage

    auroc_analytic(ranks, labels)

### Arguments

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

### Value

auroc Numeric value

### Examples

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

[Package EGAD version 1.20.0 Index]