Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: data suppression in Stata


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: data suppression in Stata
Date   Mon, 2 Sep 2002 15:26:11 +0100

Frank de Libero replied to Chris Wallace
 
>> * Does this do what you want?
>> 
>> drop if Time > Event_Time
>> 

> Since Rajiv wants to suppress data by person, the following 
> should be used:
> 
> bysort Person: drop if Time > Event_Time

Not so. The -bysort Person:- does no harm, but it's superfluous. 
Forget panels, and imagine 

. bysort foreign : drop if mpg > 35 

Whether a car is -foreign- is immaterial to whether 
-mpg- is more than 35. Similarly which -Person- we 
are looking at is immaterial to the -drop-. 

Nick 
[email protected] 
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index