Statalist


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

st: Converting numeric into string using the value labels


From   Miranda Kim <mk@mrc.soton.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Converting numeric into string using the value labels
Date   Wed, 23 Sep 2009 10:47:04 +0100

A very basic question I would appreciate help with...

if I have a numeric variable that has a value label assigned to it.
For example a binary variable (0/1) where 0 has value label "no" and 1 has value label "yes" How can I convert this to a string variable that will be populated with "yes" and "no"?

Many thanks,
Miranda

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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