Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Optimizing recoding procedures


From   Thomas Lux <tholux2000@yahoo.de>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Optimizing recoding procedures
Date   Tue, 11 Dec 2012 18:00:38 +0000 (GMT)

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?


(I referred to the -ral()- and -rany()- functions of the -egenmore- package)

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