Statalist


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

Re: st: RE: Splitting numeric values


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Splitting numeric values
Date   Tue, 24 Jul 2007 08:05:01 +0100 (BST)

--- On Jul 23, 2007, at 8:32 PM, Susan Olivia wrote:
> > I think the culprit is due to having the id as numeric variable  
> > that comes with 18 digits and stored as double as suggested by
> > Profs Buis and Cox.

As I said before, you can store only 16 digits in a double variable, so
the last two digits of the variable id are now random noice and do not
correspond to the variable id in your original dataset.
 
--- "Michael S. Hanson" <mshanson@wesleyan.edu> wrote:
> Assuming your original data are in Excel, I suspect you'd be in much
> better shape overall if you read the "id" variable in as a string  
> from the start.

This is actually the only way to store all 18 digits of your id
variable.

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
*
*   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