[R] phyper returns negative results

Bastian Angermann AngerB at gmx.de
Tue Oct 2 17:37:47 CEST 2007

Dear R-users,

In R 2.5.1 on Windows XP, SP2 the call to phyper(0,0,74,3,lower.tail=FALSE) returns -4.195862e-17. This does not happen with R2.5.1 on Linux, 0 is returned. Is this a bug (and should be reported as such), since phyper should not return negative values, or is this considered as one of the annoyances of finite precision arithmetic.
I tend to think of this as a bug since it breaks the assumption 

Bastian Angermann

More information about the R-help mailing list