Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: if qualifier

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


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:

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