Hi again,
My original post:
I want to know how to drop some observations. For example I have the
following data, the numbers are identifiers:
Original Fake
1 23
14 235
35 90
45 87
87 45
Now the 4th and 5th pairs are the exact opposite of one another. I want to
drop the 5th observation, but I don't know I can use the data to flag up
such observations so that I can drop it. Could someone show me the light?
My thanks to David Airey's suggestion, but it didn't work. I tried
something in the vein of what he's suggested, e.g.:
local i=1
local j=1
gen weirdob=.
while `i'<82845 {
while `j'<`i' {
replace weirdob[`i']=1 if original[`i']==fake[`j'] &
fake[`i']==original[`j']
local j=`j'+1
}
local i=`i'+1
}
Stata wouldn't do weights. Are there other strategies that I can employ??
Thanks again.
Ada Ma
Department of Economics
University of Aberdeen, Scotland
[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/