Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Re: STATA mistakes divisions!


From   Francesco Vidoli <fvidoli@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: STATA mistakes divisions!
Date   Thu, 15 Mar 2012 15:48:57 +0100

But therefore by default, without writing in every division "float",
STATA mistake divisions?
It's not only a visualization problem, we are trying to compare a SAS
OLS regression and  results simply do not add up if you calculate the
variables of SAS or STATA ...

thanks,

On Thu, Mar 15, 2012 at 3:37 PM, Austin Nichols <austinnichols@gmail.com> wrote:
> Francesco Vidoli <fvidoli@gmail.com>:
>
> . di %30.27g 45315 / 19657
>            2.3052856488782623
>
> . di %30.27g float(45315 / 19657)
>            2.3052856922149658
>
>
> On Thu, Mar 15, 2012 at 10:28 AM, Francesco Vidoli <fvidoli@gmail.com> wrote:
>> Hello,
>> I just realized that STATA mistake divisions at 7-8 decimal place!
>> I know it sounds strange, but try to do 45315 / 19657 ....
>>
>> SAS:      2.30528564887826
>> STATA:  2,30528569221496
>> Excel:    2,30528564887826
>> Mathematica: http://www.wolframalpha.com/input/?i=45315%2F19657
>>
>>
>> It's not a good job for a scientific software!!
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index