[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: data suppression in Stata
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-.
* For searches and help try: