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
Converting to string with values equal to previous numeric labelsFor all the variables in a dataset that have value labels, I would like to make those variables stri…
Drawing a sample from dataset.Hi everyone, I have dataset on enterprises which are categorized by sectors and regions. I wanted to…
Mixed vs fixed effects linear regression modelsDear all, I would like to thank you in advance, I am a new user of Stata and I have some trouble ana…
Kruskal-Wallis H test with Binary Variable across multiple groupsHi; I am a qualitative researcher who is relatively new to STATA. I have found reading this forum ve…
Help require with Syntax of PPVT (cognitive test) scoring of Young LivesHi, I needed help with the syntax of converting cognitive raw scores of the cognitive test (PPVT) wi…
Subscribe to:
Post Comments (Atom)
0 Response to Preparing data for competing risks
Post a Comment