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

st: RE: eqany repost

From   "Steichen, Thomas" <[email protected]>
To   <[email protected]>
Subject   st: RE: eqany repost
Date   Mon, 8 Jul 2002 11:02:57 -0400

Babigumira Ronnie writes:
> I am cleaning data (that's all I seem to be doing) and I am a little
> puzzled here. A while ago, I asked on how to identify illegal 
> entries when
> a variable takes on values in batches (e.g. 11 to 19 21 to 25 
> etc). Nick
> Cox pointed me to 
> . egen OK = eqany(cropcod2), values(110/120 220/227 330/334 440/446)
> . list houscode cropcod2 if !OK
> This has very well for, however, today I tried  
> . egen OK = eqany(inpcode), values(500/505 599 601 1100/1111 /*
> . */ 1200/1201 2100/2160/ 2200/2220 2299 2300/2302)
> . list houscode inpcode if !OK 

Clean up the extraneous / after 2160 and see if the problem 
goes away...

CONFIDENTIALITY NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information.  If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system.  Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index