View source: R/diagnostic_metrics.R
calculate_auc | R Documentation |
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)
.
calculate_auc(sens, spec)
sens |
Sensitivity of the test |
spec |
Specificity of the test |
Numeric AUC value or NA
when inputs are not valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.