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

st: varlist


From   Babigumira Ronnie <rutaremwa_rb@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: varlist
Date   Thu, 11 Jul 2002 05:19:46 -0700 (PDT)

I have 3 variables percr100 percr200 percr300 (perennial crops grown), I
know the range of these crops so I list illegal entries for percr100 using

egen perbc1 = eqany(percr100), v(-7 440/446 660/670 770/789)
list houscode percr100 if !perbc1

then I look at the manual and eqany can be followed by varlist so instead
of doing the above for all the three, I

egen perbc = eqany(percr100 percr200 percr300), v(-7 440/446 660/670
770/789)
list houscode percr100 percr200 percr300 if !perbc

And the results are wrong, it appears that only the first variable was
inspected. Did I just misinterpret eqany. In the event that I did (very
likely) whats the way out

Roni 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
*
*   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