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

st: RE: RE: Making symmetry (correction)


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Making symmetry (correction)
Date   Fri, 11 Apr 2003 10:49:23 +0100

> ssc inst levels 
> levels Id2 
> replace Id2 = . 
> foreach l of local levels { 
> 	qui replace Id2 = `l' if Id1 == `l' 
> } 

ssc inst levels 
levels Id2, local(levels) 
replace Id2 = . 
foreach l of local levels { 
 	qui replace Id2 = `l' if Id1 == `l' 
} 
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index