Fit Cox Model for Subgroup
Arguments
- yy, dd, tt, id.x
Numeric vectors: outcome, event, treatment, and the subgroup membership indicator (1 = in subgroup).
- df_clean
Data frame or
NULL. Cleaned analysis frame row-aligned with the vectors, used only to source rawadjust_covariatescolumns.- adjust_covariates
Character vector or
NULL. Additional Cox terms (e.g."strata(x1)") appended afterTreat.NULL(default) fits the treatment-only model.