Bug 14967 - qgeom can return a negative outcome
qgeom can return a negative outcome
Product: R
Classification: Unclassified
Component: Accuracy
R 2.15.0 patched
ix86 (32-bit) Windows 32-bit
: P5 normal
Assigned To: R-core
Depends on:
  Show dependency treegraph
Reported: 2012-06-30 11:19 UTC by michael.baudin
Modified: 2012-07-27 21:42 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description michael.baudin 2012-06-30 11:19:58 UTC
With R version 2.15.1 (2012-06-22) on Windows, I computed the p=1.e-20 quantile of the geometric distribution with parameter prob=0.1.

> qgeom(1.e-20,0.1)
[1] -1

But this is not possible, since X=0,1,2,...

May be the 1.e-7 in the code :


may be producing this error.
Comment 1 Brian Ripley 2012-07-27 21:42:27 UTC
Changes in 2.15.1 patched.