Skip to contents

Formats a hazard ratio and confidence interval for display.

Usage

hrCI_format(hrest)

Arguments

hrest

Numeric vector with HR, lower, and upper confidence limits.

Value

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

Examples

hrCI_format(c(1.45, 0.98, 2.14))
#> [1] "1.45 (0.98, 2.14)"