.BG
.FN Gamma
.FN dgamma
.FN pgamma
.FN qgamma
.FN rgamma
.TL
Gamma Distribution
.CS
dgamma(q, shape)
pgamma(q, shape)
qgamma(p, shape)
rgamma(n, shape)
.AG q
vector of (positive) quantiles.
Missing values (`NA's) are allowed.
.AG p
vector of probabilities.
Missing values (`NA's) are allowed.
.AG n
sample size.
If `length(n)' is larger than 1, then `length(n)' random values are returned.
.AG shape
vector of shape parameters (>0).
.RT
density (`dgamma'),
probability (`pgamma'),
quantile (`qgamma'), or
random sample (`rgamma')
for the gamma distribution with shape `shape'.
.SP
.Tr
The density function is given by
.sp
.EQ
delim $$
f sub s ( q ) ~=~
{q sup s-1 exp ( -q ) } over { GAMMA ( s ) } ,
~~~ q ~>~ 0 , ~~ s ~>~ 0,
.EN
.sp
where $s$ is the `shape' parameter.
.En
.SE
The function `rgamma' causes creation of the dataset `.Random.seed' if it does
not already exist, otherwise its value is updated.
.EX
rgamma(20,10) #sample of 20 with shape parameter 10
.KW distribution
.EQ
delim off
.EN
.WR
