Since Rajiv wants to suppress data by person, the following should be used:
bysort Person: drop if Time > Event_Time
..Frank
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Chris Wallace
Sent: Monday, September 02, 2002 6:48 AM
To: [email protected]
Subject: Re: st: data suppression in Stata
>>> [email protected] 31/08/02 18:52:16 >>>
I need to suppress these data as follows: since the event occured for
person 1 at time 2 I want to drop all data pertaining to him for period 3
and keep data only for period 1 and 2. Similarly for person 2, since the
event occured at time 1, I want to drop all data after this point and keep
data only for period 1.
* Does this do what you want?
drop if Time > Event_Time
C.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/