Likelihood ratios with log-normal (Simel) intervals
Usage
lr_ci(tp, fn, fp, tn, which = c("pos", "neg"), conf_level = 0.95)
Arguments
- tp, fn, fp, tn
Counts of true positives, false negatives, false
positives and true negatives. Vectorised and recycled together.
- which
"pos" for the positive likelihood ratio, "neg" for the
negative one.
- conf_level
Confidence level.
Value
A three-column matrix with columns est, lo and hi. Entries are
infinite or NaN where a zero cell makes the ratio undefined.
Examples
lr_ci(tp = 80, fn = 20, fp = 10, tn = 90, which = "pos")
#> est lo hi
#> [1,] 8 4.40765 14.52021