Internal function to compute Cox model hazard ratio estimates with confidence intervals for ITT, H, and Hc subgroups.
compute_sg_hr_estimates(
df,
df_H,
df_Hc,
outcome.name,
event.name,
treat.name,
conf.level = 0.95,
verbose = FALSE
)Data frame with HR estimates
Full analysis data frame
Data frame for H subgroup
Data frame for Hc subgroup
Character. Outcome variable name
Character. Event indicator name
Character. Treatment variable name
Numeric. Confidence level
Logical. Print messages