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
Thomas Lux <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Optimizing recoding procedures
Date
Tue, 11 Dec 2012 17:03:28 +0000 (GMT)
Sorry,
something went wrong with the line break.
So the last part is:
gen x = 1 if z==1
replace x = 0 if x==1 | x==2 | x==3 | y==1 | y==2 | y==3
and:
geb x = 1 if z==1
replace x = 0 if x==1 & x==2 & x==3 & y==1 & y==2 & y==3
Best,
Thomas Lux
University of Bremen
*
* 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/