Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: what does Stata do when I type "var1==var2==0"?


From   "Hau Chyi" <[email protected]>
To   [email protected]
Subject   st: what does Stata do when I type "var1==var2==0"?
Date   Fri, 26 Sep 2008 09:18:19 +0800

Dear listers,

I have 4 observations for two variables that look like this:
var1 var2
0    0
0    1
1    0
1    0

when I type:
-assert var1==var2==1-
Stata returns:
-3 contradictions in 4 observations-

I realize I need to type:
-assert var1==1 & var2==1- to get the right answer.

I have a vague idea as to why Stata prefers the second one. But what's
intrinsically wrong with the first one?

Thanks in advance!

Hau
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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