p.dalgaard@biostat.ku.dk
2000-Nov-08 16:09 UTC
[Rd] Re: [R] Strange means of numbers drawn from rpois (PR#729)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Torsten Hothorn
2000-Nov-08 16:57 UTC
[Rd] Re: [R] Strange means of numbers drawn from rpois (PR#729)
> 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.3403I get> range(sapply(1:2000, function(n) mean(rpois(10000, 15.0))))[1] 14.3702 14.6212 on SuSE Linux 4.3 hothorn@artemis:~ > gcc -v Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs gcc version 2.95.2 19991024 (release) Torsten Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu system = i686, linux-gnu status major = 1 minor = 1.1 year = 2000 month = August day = 15 language = R Search Path: .GlobalEnv, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._