Learn R Programming

acid (version 1.1)

gini.gamma: Gini Coefficient for the Gamma Distribution

Description

This function computes the Gini coefficient for the gamma distribution.

Usage

gini.gamma(p)

Arguments

p
the shape parameter p of the gamma distribution as defined by Kleiber and Kotz (2003).

Value

  • returns the Gini coefficient.

References

Cowell, F.A. (2000): Measurement of Inequality, in: Atkinson and Bourguignon (eds.), Handbook of Income Distribution, pp. 1-86, Elsevier, Amsterdam. Kleiber, C. and Kotz, S. (2003): Statistical Size Distributions in Economics and Actuarial Sciences, Wiley, Hoboken.

See Also

gini

Examples

Run this code
shape.test <- 5
scale.test  <- 50000
y <- rgamma(10000,shape=shape.test,scale=scale.test)
gini(y)
gini.gamma(shape.test)

Run the code above in your browser using DataLab