Statalist


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

Re: st: Splitting numeric values


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Splitting numeric values
Date   Mon, 23 Jul 2007 09:11:15 +0100 (BST)

--- Susan Olivia <[email protected]> wrote:
> I have a numeric variable (call it id) that comes with 18 digits 
<snip>

Mike just answerd your question. All I want to add is that if you store
this variable id as a numeric variable you won't store 18 digits, but 7
(the default) or 16 (if you specified that that variable is to be
stored as a double), see -help data types-. If you want to store all 18
digits you will have to make it a string. You can read more on this
issue here: http://www.ats.ucla.edu/stat/Stata/faq/longid.htm

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! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index