Format an estimate and its interval for a table
Value
A character vector such as "88.3 (87.4–89.1)" (the bounds are
separated by an en dash, not a hyphen), or an em dash where
the estimate is missing.
Examples
m <- diagnostic_metrics(tp = 80, fn = 20, fp = 10, tn = 90)
fmt_est_ci(m$sensitivity, m$sensitivity_lo, m$sensitivity_hi)
#> [1] "80.0 (71.1–86.7)"
