Entropy {wINEQ}R Documentation

Generalized entropy index

Description

Computes generalized entropy index of a given variable taking into account weights.

Usage

Entropy(X, W = rep(1, length(X)), parameter = 0.5)

Arguments

X

is a data vector

W

is a vector of weights

parameter

is a entropy parameter

Details

Entropy coefficient with respect to parameter α\alpha is equal to Theil_L(X,W) whenever α=0\alpha=0, is equal to Theil_T(X,W) whenever α=1\alpha=1, and whenever α(0,1)\alpha \in (0,1) we have

GE(α)=1α(α1)Wi=1nwi((xiμ)α1)GE(\alpha) = \frac{1}{\alpha(\alpha-1)W}\sum_{i=1}^{n}w_{i}\left(\left(\frac{x_{i}}{\mu}\right)^\alpha-1\right)

where WW is a sum of weights and μ\mu is the arithmetic mean of x1,...,xnx_{1},...,x_{n}.

Value

The value of generalized entropy index

References

Shorrocks A. F.: (1980) The Class of Additively Decomposable Inequality Measures. Econometrica

Pielou E.C.: (1966) The measurement of diversity in different types of biological collections. Journal of Theoretical Biology

Examples

# Compare weighted and unweighted result
X=1:10
W=1:10
Entropy(X)
Entropy(X,W)

data(Tourism)
# Generalized entropy index for Total expenditure with sample weights
X=Tourism$`Total expenditure`
W=Tourism$`Sample weight`
Entropy(X,W)



[Package wINEQ version 1.2.0 Index]