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

st: Re: operators


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
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
[email protected]


----- Original Message ----- 
From: "sauanu" <[email protected]>
To: <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index