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" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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
n.j.cox@durham.ac.uk

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index