format_CI: Format Confidence Interval for Estimates

View source: R/bootstrap_calculations_helpers.R

format_CIR Documentation

Format Confidence Interval for Estimates

Description

Formats confidence interval for estimates.

Usage

format_CI(estimates, col_names, digits = 4)

Arguments

estimates

Data frame or data.table of estimates.

col_names

Character vector of column names for estimate, lower, upper.

digits

Integer. Decimal places for numeric formatting. Default 4 to provide round-down headroom for downstream display reformatting (e.g., summarize_bootstrap_results(digits = ...)).

Value

Character string formatted as \"estimate (lower, upper)\".

Examples


library(data.table)
est <- data.table(hr = 1.58, lower = 0.86, upper = 2.90)
format_CI(est, col_names = c("hr", "lower", "upper"))


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.