auc: Calculate the AUC

Description Usage Arguments Value

View source: R/generics.R

Description

Calculate the AUC

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Feb. 17, 2021, 5:07 p.m.