Statalist


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

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


From   "Joseph Coveney" <[email protected]>
To   <[email protected]>
Subject   st: Re: Converting numeric into string using the value labels
Date   Wed, 23 Sep 2009 19:03:06 +0900

Miranda Kim wrote:

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"?

--------------------------------------------------------------------------------

The command to do that is called -decode-.

Joseph Coveney



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