Skip to contents

Uses the formula shown in the package documentation example: 0.5 * (sens * (1 - spec)) + 0.5 * (1 * (1 - (1 - spec))) + 0.5 * ((1 - sens) * spec).

Usage

calculate_auc(sens, spec)

Arguments

sens

Sensitivity of the test

spec

Specificity of the test

Value

Numeric AUC value or NA when inputs are not valid.