Skip to content
Prev 6121 / 63421 Next

RFC: d/p/q/rgamma

On Thu, 6 Sep 2001, Kurt Hornik wrote:

            
Only in public code, not for example in people's lecture notes.

There's only one use in the packages we have installed (almost all), of
rgamma(n, r) in sm.  Had that used a third arg, I am sure I would never
have spotted it when porting.

BTW, I think the cleanest approach is

dgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE)

Brian