| cdfgam | R Documentation | 
Distribution function and quantile function of the gamma distribution.
cdfgam(x, para = c(1, 1))
quagam(f, para = c(1, 1))
x | 
 Vector of quantiles.  | 
f | 
 Vector of probabilities.  | 
para | 
 Numeric vector containing the parameters of the distribution,
in the order   | 
The gamma distribution with
shape parameter \alpha and
scale parameter \beta has probability density function
f(x)={x^{\alpha-1} \exp(-x/\beta) \over \beta^\alpha \Gamma(\alpha)}
for x\ge0, where \Gamma(.) is the gamma function.
cdfgam gives the distribution function;
quagam gives the quantile function.
The functions expect the distribution parameters in a vector,
rather than as separate arguments as in the standard R functions
pgamma and qgamma.
gamma for the gamma function.
pgamma for the standard R version of the gamma distribution.
cdfpe3 for the Pearson type III distribution,
which generalizes the gamma distribution.
# Random sample from the gamma distribution
# with shape parameter 4 and mean 1.
quagam(runif(100), c(4,1/4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.