Skip to contents

For a common outcome the HR is converted with VanderWeele's (2017) approximation \(RR = (1 - 0.5^{\sqrt{HR}}) / (1 - 0.5^{\sqrt{1/HR}})\); for a rare outcome the HR approximates the RR, as EValue::evalues.HR.

Usage

e_value_hr(hr, ci_lower = NULL, ci_upper = NULL, rare = FALSE)

Arguments

hr

Hazard ratio.

ci_lower, ci_upper

Optional 95% CI of HR.

rare

Logical; outcome rare (below 15%) at the end of follow-up. Default FALSE.

Value

A morie_evalue named-list.

Examples

res <- e_value_hr(2.0, ci_lower = 1.5, ci_upper = 2.5)
res$e_value_point
#> [1] 2.606409