Decode should do the work.
See
help decode
Best wishes
Isabelle
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Miranda Kim
Sent: Wednesday, September 23, 2009 11:47 AM
To: [email protected]
Subject: st: Converting numeric into string using the value labels
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/
*
* 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/