Learn R Programming

cutpointr (version 1.1.2)

auc: Calculate AUC from a roc_cutpointr or cutpointr object

Description

Calculate the area under the ROC curve using the trapezoidal rule.

Usage

auc(x)

# S3 method for roc_cutpointr auc(x)

# S3 method for cutpointr auc(x)

Arguments

x

Data frame resulting from the roc() or cutpointr() function.

Value

Numeric vector of AUC values