Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Losing precision when saving to postfile


From   Shubhabrata Mukherjee <[email protected]>
To   stata forum <[email protected]>
Subject   st: Losing precision when saving to postfile
Date   Tue, 9 Aug 2011 12:04:28 -0700 (PDT)

Hello,

 I was trying to save results from an ordinal logistic regression to a postfile and was wondering why it's losing precision after some decimal places.

When I type ereturn after performing the rgression, I get

e(p) =  .0208020545704587.

Afterwards opening the postfile and typing 


display " " %12.10f pvalue gives me the following:

0.0208020546 which is fine, but when typing 


display " " %20.15f pvalue, I get 0.020802054554224


What am I doing wrong here?


Thanks,

 -Joey

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index