| Title: | Evidence-Based Assessment Tools for Diagnostic Test Evaluation |
|---|---|
| Description: | Provides functions for evidence-based assessment of diagnostic tests. Includes calculation of common diagnostic accuracy statistics, Bayesian updating of probabilities, interpretation of likelihood ratios, and visualization using a Fagan nomogram. |
| Authors: | Ryan McGill [aut, cre] |
| Maintainer: | Ryan McGill <rmcgill@wm.edu> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-09-27 08:41:56 UTC |
| Source: | https://github.com/rmcgill777/ebatools |
Calculate post-test probabilities from a pre-test probability and positive/negative likelihood ratios.
bayes_update(pretest_probability, lr_positive, lr_negative)bayes_update(pretest_probability, lr_positive, lr_negative)
pretest_probability |
Numeric value between 0 and 1 representing the pre-test probability. |
lr_positive |
Positive likelihood ratio. |
lr_negative |
Negative likelihood ratio. |
An object of class "bayes_update" containing:
Original pre-test probability.
Post-test probability following a positive test.
Post-test probability following a negative test.
Interpret a post-test probability using evidence-based assessment decision thresholds.
eba_interpretation( post_probability, wait_threshold = 0.1, treat_threshold = 0.7 )eba_interpretation( post_probability, wait_threshold = 0.1, treat_threshold = 0.7 )
post_probability |
Numeric value between 0 and 1. |
wait_threshold |
Threshold below which the condition is considered unlikely. Default = 0.10. |
treat_threshold |
Threshold above which the condition is considered likely. Default = 0.70. |
An object of class "eba_interpretation".
Calculate evidence-based assessment statistics from a 2 × 2 contingency table.
eba_stats(tp, fp, fn, tn)eba_stats(tp, fp, fn, tn)
tp |
Number of true positives. |
fp |
Number of false positives. |
fn |
Number of false negatives. |
tn |
Number of true negatives. |
An object of class "eba_stats".
eba_stats( tp = 50, fp = 10, fn = 5, tn = 100 )eba_stats( tp = 50, fp = 10, fn = 5, tn = 100 )
Plot pre-test and post-test probabilities using likelihood ratios.
fagan_nomogram(pretest_probability, lr_positive, lr_negative)fagan_nomogram(pretest_probability, lr_positive, lr_negative)
pretest_probability |
Numeric value between 0 and 1. |
lr_positive |
Positive likelihood ratio. |
lr_negative |
Negative likelihood ratio. |
Invisibly returns the calculated probabilities.