Hi! I am new to using stata and am having a little trouble calculating a time to death variable
Variable 1: death date
Type: double
Format %9.0%
Variable 2: event date
Type: long
Format %tdD_m_Y
I attempted to do:
gen days=(death-event)
I end up with 02e+07 for every individual.
How can I get a correct variable that represents the # of days between event and death?
Thank you!
Variable 1: death date
Type: double
Format %9.0%
Variable 2: event date
Type: long
Format %tdD_m_Y
I attempted to do:
gen days=(death-event)
I end up with 02e+07 for every individual.
How can I get a correct variable that represents the # of days between event and death?
Thank you!
Comment