Bookmark and Share

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:42:08 +0100

First of, I am sorry for reposting, but the last message got corrupted
in the archive (broke into two pieces and omitting the middle part).
Here is the second (and final) try:

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.



© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index