Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Event time creation
From
"Auh, Jun Kyung" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Event time creation
Date
Thu, 18 Apr 2013 22:00:26 -0400
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/