Convert Odds Ratios to Relative Risks Using Baseline Mortality (p0)
Source:R/yll.R
convert_or_to_rr.RdApplies the Zhang & Yu (1998) formula to convert odds ratios from logistic
regression to approximate relative risks:
$$RR = \frac{OR}{(1 - p_0) + p_0 \times OR}$$
Applied to the point estimate and both CI bounds. Works directly on the
output of fit_mortality_rr_logistic().
Usage
convert_or_to_rr(
or_data,
p0,
or_col = "OR_death",
ci_lower_col = "CI_lower",
ci_upper_col = "CI_upper"
)