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]

st: if qualifier


From   "Cohen, Elan" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: if qualifier
Date   Wed, 10 Jul 2013 19:23:38 +0000

All,

I'm not sure what to make of the following:

sysuse auto
count if 10<mpg<20

A SAS-using colleague of mine typed this into Stata.  Much to her astonishment, it returned a valid yet incorrect answer.  Much to my astonishment, it did not return an error.

What is Stata doing here?  Is this behavior documented anywhere?

- Elan


--
Elan D Cohen, MS
Center for Research on Health Care Data Center
University of Pittsburgh 



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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