Re: [R] rate instead of scale in ?ks.test

From: Martin Maechler <>
Date: Mon 03 Oct 2005 - 17:31:37 EST

>>>>> "Ramon" == Ramón Casero Cañas <>
>>>>> on Sun, 02 Oct 2005 20:03:37 +0100 writes:

    Ramon> I am not sure whether I'm doing something wrong or
    Ramon> there is a bug in the documentation of
    Ramon> ks.test. Following the posting guide, as I'm not
    Ramon> sure, I haven't found this in the bug tracker, and
    Ramon> the R FAQ says that stats is an Add-on package of
    Ramon> R, I think this is the place to send it.

well "stats" is not exactly what we'd call an "Add-on package". You cannot get an R installation without it.

    Ramon> ?ks.test provides the example

 Ramon> <QUOTE>

 Ramon> # Does x come from a shifted gamma distribution with shape 3 and scale 2?  Ramon> ks.test(x+2, "pgamma", 3, 2) # two-sided

 Ramon> </QUOTE>

    Ramon> Maybe it should say ``with shape 3 and rate 2''?

Definitely. You are right
{and there's a small history to the reason for this "typo",  not really worth of our time though}.

This is such a trivial bug fix that it can even be applied to the code-frozen R 2.2 beta.

Thank you, Ramón!

Martin Maechler, ETH Zurich mailing list PLEASE do read the posting guide! Received on Mon Oct 03 17:35:43 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:09:34 EST