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

Re: st: Re: how to flag up obs that are the reverse of other obs?


From   "Erik Ø. Sørensen" <sameos@mac.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: how to flag up obs that are the reverse of other obs?
Date   Wed, 26 Feb 2003 22:12:44 -0500

On onsdag, feb 26, 2003, at 21:49 Canada/Eastern, Ada Ma wrote:
while `j'<`i' {
replace weirdob[`i']=1 if original[`i']==fake[`j'] &
  ...
Stata wouldn't do weights. Are there other strategies that
I can employ??
The problem is that Stata does not like explicit indexing on the
left-hand side. I think that what you want is something like

replace weirdob=1 if /*
*/ (original[`i']==fake[`j'] & original[`j']==fake[`i']) in `i'

If you have a lot of observations you better prepare for some waiting ...

Erik
--
Erik Ø. Sørensen, <http://www.geocities.com/erik_oiolf/>.
phd student (economics), Norwegian School of Economics.
currently visiting Queen's University, Kingston, Ontario.

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index