Closed YutingHan317 closed 2 months ago
The error message tells you all you need to know here: "set x=TRUE in the call to coxph". So if you change:
fit_plot <- coxph(Surv(ev_time, event_occurred) ~ highest_education + age_strata + region_code + alc_wek_7g, data = df_cox)
to
fit_plot <- coxph(Surv(ev_time, event_occurred) ~ highest_education + age_strata + region_code + alc_wek_7g, data = df_cox,
x=TRUE)
it should work.
Thank you very much for the prompt reply. It works!!
No problem!
Hi, I get an error when using direct method. Error is
To reproduce,
Session info