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
Related Posts with Preparing data for competing risks
How to save a graph to a directory in your computer?Normally, when drawing a graph in STATA, I need to save it manually, not convenient like in a log fi…
How to extract year only from year/month data?Hi I want to generate a new time variable of year only by removing slash and month from data looks l…
a Regression with missing ValuesHallo Statalist, i am trying to find out the effect of the macro variables on the credit Rating in …
Can we construct the survival curve after stteffects commands?Hello, I'm working on the survival analysis, using stteffects command (both LAC-IPWRA and WAC-IPWRA…
Creating a new variable for 'second to max' value of a series.Hi Statalist colleagues, I have a question regarding max(). So I am trying to extract max and seco…
Subscribe to:
Post Comments (Atom)
0 Response to Preparing data for competing risks
Post a Comment