SHAZAM Community
Ask Your Question

How to report logit output to more than 10 decimal place precision?

asked 2011-05-19 16:59:38 +0000

A SHAZAM User asked:

Do you know how to report logit output to more than 10 decimal place precision?

I tried to fit logit with "Format" specified more than ten decimal place reporting. But the error message is:

"error, less data found than expected, zero used ."

My program is attached herein.

par 1000
file 1 g:\software\data200.txt
sample 1 200
read(1) Y X0  X / Format
logit Y X / COEF=beta Stderr=alpha
gen1 B0=Beta(1)
gen1 B1=Beta(2)
print B0 B1 alpha / Format
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-05-19 17:22:09 +0000

David gravatar image

updated 2011-05-20 03:06:31 +0000

This program is using the A format on the FORMAT statement to READ and WRITE when only the F format should be used for this.

To get more digits - you have the right idea. i.e. save the coefficients, then print with a big format like F(25.15). Numbers are stored internally at either double or quad precision but the default output formatting only displays the first few digits.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2011-05-19 16:59:38 +0000

Seen: 13,063 times

Last updated: May 20 '11