Another option is: though bit confusing
list var1 if var2>.07 & var2<.071
Regards
Kartick
>>> "Donald Braman" <[email protected]> 23/07/2007 4:17 p.m. >>>
I'm trying to understand how the if statement works. I have two
variables, var1 and var2. let's say that they're as follows:
var1 var2
.09 0
.01 0
.03 .07
.05 .07
.09 .08
If I type "list var1 if var2==0", I get, as I expected, a result list
containing .09 & .01 .
But if I type "list var1 if var2==.07", I get nothing.
Clearly, I'm missing something. What? (I've attached the data in case
that helps.)
*
* 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/