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

st: RE: RE: from string to nummeric


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: from string to nummeric
Date   Wed, 31 Mar 2004 12:15:14 +0100

In addition, a fairly strung-out discussion is given 
in "On numbers and strings" Stata Journal 2(3):314--329
(2002). That needs updating on the detail that -tostring- 
is now part of official Stata. 

The main story there is to think of methods as coming 
in pairs: 

-encode- and -decode- for strings vs numeric variables 
with value labels; 

-tostring- and -destring- for when the present variable 
type is essentially a mistake (perhaps yours, perhaps 
Stata's) 

-real()- and -string()- as the brute force conversion
functions.                                

Nick 
n.j.cox@durham.ac.uk 

Daniel Mueller
 
> check -destring- of -encode-
> 
> Typing -findit string numeric- gives you a range of options 
> including some
> FAQs

aschaefer@diw.de
 
> > i need some help with recoding a 'string' 
> > variable to a 'nummeric' varible.

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