View source: R/compute_indicators.R
| compute_indicators | R Documentation |
This function computes sensitivity, specificity, predictive values, likelihood ratios, accuracy, and Youden index with confidence intervals based on a 2x2 table of diagnostic test results.
compute_indicators(tp, fp, fn, tn, prev, conf = 0.95)
tp |
True positives |
fp |
False positives |
fn |
False negatives |
tn |
True negatives |
prev |
Prevalence (numeric between 0 and 1) |
conf |
Confidence level (default 0.95) |
A list with all diagnostic indicators and confidence intervals
compute_indicators(50, 10, 5, 100, prev = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.