[Rd] An extreme quantile of the geometric distribution

From: <michael.baudin_at_contrib.scilab.org>
Date: Thu, 28 Jun 2012 22:49:34 +0200


 With R version 2.10.0 (2009-10-26) 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,...

 I guess that this might be a bug in the quantile function, which should  use the log1p function, instead of the naive formula.

 Am I correct ?

 Best regards,


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 29 Jun 2012 - 11:12:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 30 Jun 2012 - 11:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive