Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: gen a_n = real(a) does not create any values


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: gen a_n = real(a) does not create any values
Date   Fri, 19 Sep 2008 20:28:33 +0200

string to numeric is usually accomplished via -destring-

Martin Weiss
_______________________
----- Original Message ----- From: "Fabian Brenner" <Fabian.Brenner@gmx.de>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, September 19, 2008 8:25 PM
Subject: st: gen a_n = real(a) does not create any values



Dear all:

I use Stata 8 and in order to add two variables a+b (a is format str5 %5s, b is format str13 %13s) I want to convert these string variables to numeric variables.

I use: gen a_n = real(a)

Stata generates new values for a_n. But using the browser I see that variable a_n doesn't have any values. What's wrong?

Thanks,
Fabian

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
*
* 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/


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