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]
Re: st: RE: Drop Duplicates while simultaneously eliminating opposite positive and negative values
From
daniel klein <[email protected]>
To
[email protected]
Subject
Re: st: RE: Drop Duplicates while simultaneously eliminating opposite positive and negative values
Date
Sun, 11 Nov 2012 12:30:57 +0100
Beatrice,
this is kind of confusing. You say, you want to
"[...] keep[ing] one observation if there are duplicates for all make,
price and mpg."
You then go on, specifying rules for cases in which
"there are 2 duplicated positive price values when there is one
opposite negative price value for the common make and mpg"
But this is impossible. Given the first step, which elimintates all
but one positive (or negative) price value in the subgroup defined by
make and mpg, there can no longer be any cases that have 2 (or more)
duplicated positive (or negative) price values in terms of make and
mpg.