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]
RE: st: Re: STATA mistakes divisions!
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: Re: STATA mistakes divisions!
Date
Thu, 15 Mar 2012 15:06:44 +0000
Again, not a problem. In broad terms, Stata does its calculations in double precision (sometimes more).
Nick
[email protected]
Francesco Vidoli
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 ...
On Thu, Mar 15, 2012 at 3:37 PM, Austin Nichols <[email protected]> wrote:
> Francesco Vidoli <[email protected]>:
>
> . 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 <[email protected]> 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/