Statalist


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

Re: st: All entries saved as integers


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: All entries saved as integers
Date   Thu, 11 Feb 2010 10:33:23 -0500

I once had a similar problem after loading a corrupted
dataset - even after I -clear-ed the dataset, I could
create new byte variables and find garbage in them.

http://www.stata.com/statalist/archive/2004-06/msg00015.html

Later determined that it didn't matter if the dataset was
in memory, just that I had loaded it at some point.

Sounds like you resolved yours with an update, but it happens
again, consider your dataset.


cheers,
jeph






Hans Henrik Sievertsen wrote:
Hi all,

I suddenly experience that all my entries in stata are saved as integers?
How can that be?
If I for instance type:


. clear

. set obs 10
obs was 0, now 10

. gen a=2.73456

. disp a
2


While if I use some function it works:


. gen z=uniform()
. disp z
.88350743

What am I doing wrong?
Thanks in advance!

Regards
Hans
*
*   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/

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index