auc {ROCket}R Documentation

Calculate the AUC

Description

Calculate the AUC

Usage

auc(x, ...)

## S3 method for class ''function''
auc(x, ...)

## S3 method for class 'curve'
auc(x, lower, upper, n = 10000, ...)

## S3 method for class 'rkt_roc'
auc(x, exact = TRUE, ...)

Arguments

x

An R object.

...

Further parameters.

lower, upper

The limits of integration.

n

The number of integration points.

exact

Logical. If the exact formula should be used for calculating the AUC instead of numerical approximation.

Value

The area under the curve as a numeric value.


[Package ROCket version 1.0.1 Index]