Format a ratio and its interval for a table
Value
A character vector such as "5.21 (4.80–5.66)" (the bounds are
separated by an en dash, not a hyphen), or an em dash where
a zero cell leaves the ratio undefined.
Examples
m <- diagnostic_metrics(tp = 80, fn = 20, fp = 10, tn = 90)
fmt_ratio_ci(m$lr_pos, m$lr_pos_lo, m$lr_pos_hi)
#> [1] "8.00 (4.41–14.52)"
