|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: RE: All entries saved as integers
Is it possible that your format for a is %f2.0? However that would give you 3 for your output.
Tony
Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Wednesday, February 10, 2010 3:29 PM
To: [email protected]
Subject: st: RE: All entries saved as integers
I can't reproduce or explain this.
Nick
[email protected]
Hans Henrik Sievertsen
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?
*
* 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/