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

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


Daniel Mueller
> check -destring- of -encode-
> Typing -findit string numeric- gives you a range of options 
> including some
> FAQs
> > i need some help with recoding a 'string' 
> > variable to a 'nummeric' varible.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index