I am using Stata and completing a competing risks regression with secondary cancer diagnosis as the failure and death as a competing risk.
I am not sure if I am using the stset command correctly. The code I am using is this:-
stset diagtime, time0(diagnosisdate1) origin(time diagnosisdate1) exit(diagnosisdate2) failure(fail==1)
Where "diagtime" is the time between primary and secondary diagnosis and fail == 1 is the occurrence of a secondary diagnosis.
I need to specify death as a competing failure for when I run the regression but not sure if this should be specified as death alone, or death as well as no second diagnosis.