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

st: RE: Re: Winning and losing


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: Winning and losing
Date   Fri, 21 Nov 2003 12:05:09 -0000

Not quite. In what follows (e.g.)

labpc > 0

should be

labpc != 0

For these data, that makes no difference,
as presumably no negative percents are
observed. But in general the Stata rule is

zero means false
non-zero means true

Nick
[email protected]

dr kardos l�szl�

> stata reads
>
> -g conwin=0 if conpc > labpc & ldmpc & natpc & othpc-
>
> as
>
> -g conwin=0 if conpc > labpc & ldmpc>0 & natpc>0 & othpc>0-
>
> so what u need is
> -g conwin=0 if conpc > labpc & conpc>ldmpc & conpc>natpc &
> conpc>othpc-
>
> but i dont get it, if conpc is greater than any of the rest
> percentages,
> should conwin be set to 1 straight away?
>

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