Statalist


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

Re: st: RE: Converting numeric into string using the value labels


From   Miranda Kim <[email protected]>
To   [email protected]
Subject   Re: st: RE: Converting numeric into string using the value labels
Date   Wed, 23 Sep 2009 11:18:12 +0100

Thanks a lot!

Isabelle Deltour wrote:
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/



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