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 23:52:06 -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

> There's nothing odd about it at all.

No. I meant that it's odd that the two solutions produced differences in
output such as that I displayed a couple of posts ago. If you want
confirmation of what I found, you're more than welcome to have a copy of
my dataset so that you can reproduce it for yourself.

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