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/