Format confidence interval

fmt_ci(.est, .lower, .upper, digits = 2, width = digits + 3)

Arguments

.est

an estimator.

.lower

lower confidence interval bound of an estimator.

.upper

upper confidence interval bound of an estimator.

digits

number of digits for .est, .lower, and .upper.

width

the total field width.

Examples

fmt_ci(1, -0.25, 1.32)
#> [1] " 1.00 (-0.25, 1.32)"