Dear R users,

?rgamma gives me :

               rgamma(n, shape, rate = 1, scale = 1/rate)

               rate: an alternative way to specify the scale.

               The Gamma distribution with parameters ‘shape’ = a and
               ‘scale’ = s has density
               f(x)= 1/(s^a Gamma(a)) x^(a-1) e^-(x/s)

Should I understand that scale=1/rate ? Is it written somewhere ?

Then rgamma(n, shape=a, scale = s) should be equivalent to rgamma(n,
shape=a, rate =1/s).

I don't find this very clear.

Thanks for your help.

Randall

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to