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: RE: if qualifier
From
"Sarah Edgington" <[email protected]>
To
<[email protected]>
Subject
st: RE: if qualifier
Date
Wed, 10 Jul 2013 13:15:33 -0700
Elan,
It appears to be just ignoring the <20.
That is, it's that same result as -count if 10<mpg-
I'm also surprised it doesn't give an error (I'd expect "invalid <20").
-S
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cohen, Elan
Sent: Wednesday, July 10, 2013 12:24 PM
To: [email protected]
Subject: st: if qualifier
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/
*
* 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/