Description Usage Arguments Details Value Author(s) References See Also Examples
Density, and random generation for the Gamma distribution with parameters shape and scale.
1 2 |
x |
vector of quantiles |
n |
number of random values to return |
shape,scale |
shape and scale parameters. Must be positive, |
rate |
an alternative way to specify the scale |
log |
logical; if TRUE, probabilities/densities p are returned as log(p) |
type |
specify the type; may be |
Works in much the same way as the R base functions.
gdgamma
gives the density and grgamma
generates random deviates.
Nathan Morris
Random gamma simulation was implemented using the algorithm described in: Marsaglia and Tsang (2000) A Simple Method for Generating Gamma Variables. ACM Transactions on Mathematical Software. Volume 26 Issue 3, Pages 363-372.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.