Dear all,
I am trying to run a competing model with stata and have always the same error, please see above, I don't know if someone could help me.
Thanks by advance
Sophie
My script is
egen facid_merge = group(facid5 patcens), label
gen status=0
replace status=2 if all_died_7==1
replace status=1 if hosptype_new==1
stset eventdt1, origin (start_dt) f(status==1) scale (365.25) id(facid_merge)
stcrreg mage, compete (status==2)
The stset part runs well, it is the part with stcrreg that gives the error message :
option compete(): competing risks events must be stset as censored
r(459);
I am trying to run a competing model with stata and have always the same error, please see above, I don't know if someone could help me.
Thanks by advance
Sophie
My script is
egen facid_merge = group(facid5 patcens), label
gen status=0
replace status=2 if all_died_7==1
replace status=1 if hosptype_new==1
stset eventdt1, origin (start_dt) f(status==1) scale (365.25) id(facid_merge)
stcrreg mage, compete (status==2)
The stset part runs well, it is the part with stcrreg that gives the error message :
option compete(): competing risks events must be stset as censored
r(459);
Comment