Learn R Programming

ROCket (version 1.0.3)

auc: Calculate the AUC

Description

Calculate the AUC

Usage

auc(x, ...)

# S3 method for `function` auc(x, ...)

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

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

Value

The area under the curve as a numeric value.

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.