Description Usage Arguments Value Author(s) References See Also Examples
This function computes the Theil index for the gamma distribution.
1 | theil.gamma(p)
|
p |
the shape parameter p of the gamma distribution as defined by Kleiber and Kotz (2003). |
returns the Theil index.
Alexander Sohn
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.
1 2 3 4 5 | shape.test <- 5
scale.test <- 50000
y <- rgamma(10000,shape=shape.test,scale=scale.test)
entropy(y,1)
theil.gamma(shape.test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.