Format confidence intervals for nice printing
Usage
make_interval_entry(conf.low, conf.high, digits = 2)
Arguments
- conf.low
A numeric vector of lower bounds.
- conf.high
A numeric vector of upper bounds.
- digits
The number of decimal places. Defaults to 2.
Value
A character vector, e.g. "[-0.17, 0.31]".
Examples
conf.low <- c(-0.1652, 0.00304, -6.352)
conf.high <- c(0.3052, 0.00696, -1.648)
make_interval_entry(conf.low, conf.high)
#> [1] "[-0.17, 0.31]" "[0.00, 0.01]" "[-6.35, -1.65]"