Statalist The Stata Listserver


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

Re: st: Format problem?


From   "Michael Blasnik" <[email protected]>
From   "Andrzej Niemierko" <[email protected]>
To   <[email protected]>
Subject   Re: st: Format problem?
Subject   Re: st: Format problem?
Date   Sun, 29 Jan 2006 12:32:35 -0500

Thank you all for your kind responses. Indeed, using double solved this
annoying and important problem (the numbers are id numbers of patients). I
think that double (not float) should be a default setting in STATA. Saving
some memory is an important issue for only a small percentage of problems.
Andrzej
In general, it is better to hold IDs as string variables to make sure they are exactly what you think they should be -- regardless of how many digits they may have or other issues like leading zeros. The default float vs. double issue comes up fairly often. Perhaps the manuals should highlight this issue more and also the fact that you can change the default to double.

Michael Blasnik
[email protected]
*
* 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