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

st: Re: operators


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: operators
Date   Tue, 16 Mar 2004 11:21:11 -0500

Your final condition selects only cases where 

v2afac==5 & v2afac==6

which will be impossible to meet.  You need to use :

(v2afac==5 | v2afac==6)

remember to put the expression in parentheses 

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- 
From: "sauanu" <sauanu@yahoo.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, March 16, 2004 11:10 AM
Subject: st: operators


> Hi ALL,
> 
> Following is the output that I get from Stata:
<snip>
> . 
> . * paved road and  dirt road 
> . table v2afac  [pw=persweig] if urbrural==2 &
> v2a01==1 & v2afac==5 & v2afac==6, row col
> no observations
> r(2000);
> 
> 
> 
> I can clearly see in the data that there are people
> who have answered both. I am trying to figure out the
> discrepancy in the data.
> 
> Many thanks,
> Anuja
> 


*
*   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