Hi all-
I am wondering how I can create the event time variable. For example I want to create something like this:
Time Event EventTime
2000m1 No -2
2000m2 No -1
2000m3 Yes 0
2000m4 No 1
2000m5 No 2
Furthermore, what I actually want to create is the following:
Time ID Event EventTime
2000m1 No -2
2000m1 No -2
2000m2 No -1
2000m2 No -1
2000m3 Yes 0
2000m3 Yes 0
2000m4 No 1
2000m4 No 1
2000m5 No 2
2000m5 No 2
Could you please help me out?
Best,
JK
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/