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

st: RE: label to string


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: label to string
Date   Mon, 9 May 2005 16:26:08 +0100

This is what -decode- does. 

Admittedly, every label is (usually) repeated. If you wanted 
each value and label pair just once, you could 

contract myvar 
decode myvar, gen(labelvar) 

Nick 
n.j.cox@durham.ac.uk 

Hans J. Baumgartner
 
> is there any possibility to save labels as string vars?

*
*   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