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

RE: st: RE: Creating a dummy variable that 'marks out' useless


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   RE: st: RE: Creating a dummy variable that 'marks out' useless
Date   Wed, 15 Dec 2004 20:26:41 -0000 (GMT)

Nick Cox replied:

> I can't reproduce your results here. I get
> the same results as Scott. Your logic that
>
> 0 & 0 & 1 == 1
>
> is not the same as Stata's (or Boole's).
> In other words, my code appears equivalent
> to Scott's.
>
> That's using in this example
>
> gen nmark = natch < . & ednatch < . & marker != 0

How very odd. :( Oh well, at least Scott's routine produces what I want,
so I'll run with his (as well as reading up on the attached).

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

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