[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: STATA reads numbers as strings
A bit late, but...
One thing I've done in the past is read the variable once as a string and
then again as a number. Then you can find those cases for which the
numeric version of the variable is missing. At that point, look at the
string version to see what the problem is. I did this when I did not want
to dump a whole lot of cases because of the way DSM codes were entered
into a database. I was able to go back and fix the variables so that I
lost many fewer cases.
On Tue, 11 May 2004 17:36:27 +0100, "Nick Cox" <email@example.com>
> Some relevant links:
> > I keep trying to import data (csv file) that are all numbers,
> > but STATA reads
> > some of them as string. How do I get STATA to read it properly?
> * 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/
* For searches and help try: