Calculate the AUC
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, ...)
The area under the curve as a numeric value.
An R object.
Further parameters.
The limits of integration.
The number of integration points.
Logical. If the exact formula should be used for calculating the AUC instead of numerical approximation.