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
Esttab Output File not generated properlyI am writing the following code: local variables= "taxratesales taxrateVAT" estpost tabstat `variab…
do file doesn't run well on DropboxHey everyone, we are using Dropbox to collaborate our work in Stata. I wrote a do file that runs pe…
Creating variable out of conditional values in another one (GDELT)Hello everyone. Let me first describe my data and purpose of analysis for the sake of context. I hav…
Calculating Cronbach's alpha in STATA does not return a result, only "."Dear Statalist I have a dataset of responses to a questionnaire. I need to calculate Cronbach's alp…
Calculation of frequency and ratiosHi Everyone, Bellow in the -dataex- example, I have a zipcode, date (month_year) and name of an ins…
Subscribe to:
Post Comments (Atom)
0 Response to Preparing data for competing risks
Post a Comment