Re: [S] bug in the rate parameter for gamma dist.?

Albyn Jones (jones@reed.edu)
Thu, 4 Jun 1998 09:46:34 -0700 (PDT)


>The rate parameter of a gamma distribution should (as far as I know) be
>positive, but it is possible to set the rate in the rgamma, qgamma etc.
>functions to a negative value. This gives negative values from for example
>rgamma
>
>ex.:
> > rgamma(3,1,-1)
>[1] -3.2084157638 -0.5094224287 -0.7898035442
>

which version of S+ are you using? In 3.4 on a Sun I get

> rgamma(3,1,-1)
Error: Too many arguments to rgamma; last 1 not matched

albyn
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news