auc: Calculate the AUC

View source: R/generics.R

aucR 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.


ROCket documentation built on June 8, 2025, 10:41 a.m.