Description Usage Arguments Details Value References Examples
Density and random generation of the generalized gamma distribution.
1 2 |
x |
vector of positive values |
n |
number of simulated vectors |
shape1 |
overall shape parameter |
scale |
vector of scales. Should be of the same length as |
shape2 |
vector of Dirichlet parameters. Should be of the same length as |
log density at x >0:
log(shape1/scale) - lgamma(shape2) + (shape1*shape2-1)*log(x/scale) - (x/scale)^{shape1}
dggamma: Generalized gamma density evaluated at x
rggamma: Generalized gamma random deviates
Stacy, E.W. (1962). "A Generalization of the Gamma Distribution." Annals of Mathematical Statistics 33(3): 1187-1192.
Johnson, N.L.; Kotz, S; Balakrishnan, N. (1994) Continuous Univariate Distributions, Volume 1, 2nd Edition. Wiley. ISBN 0-471-58495-9 (Section 17.8.7)
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.