Dear all,
I am trying to run a competing model with STATA and having the following error. I would really appreciate if anyone may help me.
Thank you
Sincerely,
Oyun
Codes
I am trying to run a competing model with STATA and having the following error. I would really appreciate if anyone may help me.
Thank you
Sincerely,
Oyun
error message:
option compete(): competing risks events must be stset as censored
r(459);
option compete(): competing risks events must be stset as censored
r(459);
PHP Code:
gen death_before_chf =0
replace death_before_chf=1 if (death==1 & time_death < time_chf)
label define death_before_chf 0"censored" 1"event", replace
label value death_before_chf death_before_chf
stset time_chf, failure(chf==1) id (id)
stcrreg i.age i.gender, compete(death_before_chf)
estimate store model1
Comment