[R] Re: precision, incorrect(?) tapply() NA's

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Nov 20 16:46:40 CET 2000


David James <dj at research.bell-labs.com> writes:

> > [1] 0.000000e+00 0.000000e+00 0.000000e+00 1.110223e-16 6.441705e-01
> > [6] 4.679352e-01 1.584967e+00 1.162720e+00
> 
> which agrees with unique(r)
> 
> > unique(r)
> > [1] 0.6931472 0.6931472 1.3373177 1.8052529 3.3902202 4.5529401
> 
> (note that .Machine$double.eps is [1] 2.220446e-16, twice the 4th diff.)

Yep, but since the number is < 1 and double.eps is a relative
quantity, it's probably still a last-bit representation issue in 64
bit doubles (i.e. it is not the infamous Intel extended precision
playing tricks on us again.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list