Format estimates and standard errors for nice printing
Usage
make_se_entry(estimate, std.error, digits = 2)
Arguments
- estimate
A numeric vector of estimates.
- std.error
A numeric vector of standard errors, the same length as estimate.
- digits
The number of decimal places. Defaults to 2.
Value
A character vector, e.g. "0.07 (0.12)".
Examples
estimate <- c(0.07, 0.005, -4)
std.error <- c(0.12, 0.001, 1.2)
make_se_entry(estimate, std.error)
#> [1] "0.07 (0.12)" "0.01 (0.00)" "-4.00 (1.20)"