Fits a Cox PH model with specified covariates. Returns the model object, hazard ratios with confidence intervals, and concordance index.
Usage
run_cox_regression(surv_data, covariates = c("age_years", "gender"))Value
List with components: - `model`: coxph object - `hazard_ratios`: data frame with HR, CI, p-values - `concordance`: C-index - `n`: number of patients in model - `n_events`: number of events - `ph_test`: cox.zph result for PH assumption