R-alpha: rhyper bug ???

Ennapadam Venkatraman (VENKAT@biosta.mskcc.org)
29 Mar 97 08:07:00 EST


Message-Id: <199703291306.OAA10346@hypatia.math.ethz.ch>
Date: 29 Mar 97 08:07:00 EST
From: "Ennapadam Venkatraman" <VENKAT@biosta.mskcc.org>
Subject: R-alpha: rhyper bug ???
To: "r-testers" <r-testers@stat.math.ethz.ch>

I get strange results when I use rhyper. See below

> rhyper(1,20,30,10)
[1] 15
> rhyper(1,20,30,10)
[1] 11                      How can you get a value larger than 10
> rhyper(1,20,30,10)        when you sample only 10
[1] 9
> rhyper(2,20,30,10)
[1] 11 13
> rhyper(1,50,60,40)


The final call was running for over 10 minutes when I killed it.

E.S. Venkatraman

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