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

st: RE: [numeric to string]


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: [numeric to string]
Date   Fri, 22 Nov 2002 18:10:38 -0000

Chau Do
> 
> What is the command to change a numeric variable to a 
> string variable? i
> have looked in the help menu and faq, but have only found 
> commands for the
> other way around; i.e, numeric into string. i have tried 
> the decode but i
> believe that this is the wrong command, or at least it 
> gives me an error
> message when i try it.

Various suggestions were made: 

-tostring-, a user-written ado 

-string()-, an official Stata function. 

There is a more general review of this territory 
in Stata Journal 2(3), 314-329 (2002) under
the heading "On numbers and strings". 

Nick 
[email protected] 
*
*   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