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

st: RE: about precision


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: about precision
Date   Thu, 16 Jan 2003 14:49:28 -0000

Rodrigo Briceņo
>
> I have an ID variable composed by 10 digits like in the
> example below and it
> was transfered from SPSS. Can somebody tell me what do I
> need to do in order
> to avoid this strange result. I use: recast double ID, but
> the results
> remain unchanged:
>
> Original            New (when I transfer to Stata)
> 1001008011      1001008000
> 1001008021      1001008000
> 1001008031      1001008000
> 1001008041      1001008000
> 1002005011      1001008000
> 1002005021      1001008000
> 1002005031      1001008000

Various concurrent threads -- including
embedded references -- are relevant.

The original is being transferred as
a -float-, but must be transferred as
a -double-, a -long-, or a string variable.

I don't know any SPSS incantations to
ensure this, and in any case the best
advice would presumably depend on how
you are doing the transfer.

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