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

st: RE: String to Numeric


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: String to Numeric
Date   Thu, 31 Jul 2003 13:17:17 +0100

metienne

> My question is, how do I change a string variable to a 
> numeric variable. I am using STATA version 7.

Consider whether you really want -encode-; otherwise 
it is a choice between 

	-real()- function (brutal, stupid) 

and 

	-destring- (gentle, smart) 

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



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