calculate_auc: Approximate AUC from sensitivity and specificity

View source: R/diagnostic_metrics.R

calculate_aucR Documentation

Approximate AUC from sensitivity and specificity

Description

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.


sbalci/ClinicoPathJamoviModule documentation built on June 13, 2025, 9:34 a.m.