[Rd] Re: [R] Strange means of numbers drawn from rpois (PR#729)

p.dalgaard@biostat.ku.dk p.dalgaard@biostat.ku.dk
Wed, 8 Nov 2000 17:09:10 +0100 (MET)


Kjetil Kjernsmo <kjetil.kjernsmo@astro.uio.no> writes:

> On 8 Nov 2000, Peter Dalgaard BSA wrote:
> 
> >I'm not at all happy with this:
> >
> >Solaris :
> >> range(sapply(1:2000, function(n) mean(rpois(10000, 15.0))))
> >[1] 15.0524 15.3403
> 
> Hm, OK, so it isn't just me.... I guess it is time to file a bug report,
> should I do it, or will you take care of it?

Done...

(This kind of behaviour has been observed on various platforms and
various compilers, sometimes getting stuck around 15.15 and sometimes
around 14.5. Others report no problems. Very strange. I've seen one
case where it apparently shifted from one regime to the other.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._