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

st: RE: label to string


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index