From p.dalgaard@biostat.ku.dk  Wed Nov  8 16:51:04 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 08 Nov 2000 17:51:04 +0100
Subject: [Rd] Re: [R] Strange means of numbers drawn from rpois (PR#730)
In-Reply-To: kjetil.kjernsmo@astro.uio.no's message of "Wed, 8 Nov 2000 17:23:12 +0100 (MET)"
References: <200011081623.RAA06926@pubhealth.ku.dk>
Message-ID: <x2ofzqtnk7.fsf@blueberry.kubism.ku.dk>

kjetil.kjernsmo@astro.uio.no writes:

> On 8 Nov 2000, Peter Dalgaard BSA wrote:
> 
> >Done...
> 
> Great!

However, be careful not to reply to the version of the mail without a
PR# if there's a Cc: to R-bugs. Now there are *two* reports in the
repository...

I've poked around a bit and it seems that the problem has to do with
the code that tries to save time by reusing calculations if mu ==
muprev: 

> range(sapply(1:2000, function(n) mean(rpois(10000, c(15,15+1e-8)))))
[1] 14.8692 15.1200

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: [R] Strange means of numbers drawn from rpois (PR#730)
Peter Dalgaard BSA