Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Optimizing recoding procedures


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Optimizing recoding procedures
Date   Wed, 12 Dec 2012 14:55:46 +0000

Wish I'd thought of that.

Nick

On Tue, Dec 11, 2012 at 10:10 PM, David Radwin <[email protected]> wrote:

> It's not much of an improvement, but if a, b, c, and d all are all dummy
> (0/1) variables:
>
> replace x = 0 if a + b + c + d == 4

On Tue, Dec 11, 2012 at 6:00 PM, Thomas Lux <[email protected]>

>> >>> Thank you very much, Nick!
>> >>>
>> >>> The mentioned statement makes indeed no sense.
>> >>>
>> >>> The statement should be
>> >>>
>> >>>
>> >>> replace x = 0 if a==1 & b==1 & c==1 & d==1 & d==1
>> >>>
>> >>> Is there a way to do this in a shorter way?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index