Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Identifying unique values with codebook


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Identifying unique values with codebook
Date   Thu, 17 Jun 2010 16:51:40 +0000 (GMT)

--- On Thu, 17/6/10, Michael N. Mitchell wrote:
> It seems to me that many of the "gotchas" arise
> from the fact that the default data type is "float"
> instead of "double". 

The typical variable in a dataset contains some sort
of measurement, and most measurements are nowhere 
near as precise to warant anything more than 2 or
3 digits of precision, so "float" is a perfectly
sensible default. This leaves variables that are
supposed to represent a unique identification 
number. Here double or long may help, but these
too can easily become too short for those cases,
which would then require you to switch to strings. 
So, I am not convinced about the usefulness if a 
switch of the default to double. 

-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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   |   Site index