Hi everyone
I have four variables: Event 1 (1: yes, 0: no), time to event 1 (years); event 2 (1: yes, 0: no), time to event 2 (years)

I would like to do competing risks (compete variable event 2), so I have to create one new variable "events" (1: event 1, 2: compete risk has occured) before using stcrreg
Could you please help me with the appropiate syntaxis to make it?

Thank you