Hoover {wINEQ} | R Documentation |
Hoover index
Description
Computes Hoover inequality measure of a given variable taking into account weights.
Usage
Hoover(X, W = rep(1, length(X)))
Arguments
X |
is a data vector |
W |
is a vector of weights |
Details
Let x_i be the income of the i-th person and \overline{x}
be the mean income. Then the Hoover index H is:
H={\frac {1}{2}}{\frac {\sum_{i}|x_{i}-{\overline{x}}|}{\sum_{i}x_{i}}}
Value
The value of Hoover coefficient.
References
Hoover E. M. Jr.: (1936) The Measurement of Industrial Localization, The Review of Economics and Statistics, 18
Hoover E. M. Jr.: (1984) An Introduction to Regional Economics, ISBN 0-07-554440-7
Examples
# Compare weighted and unweighted result
X=1:10
W=1:10
Hoover(X)
Hoover(X,W)
data(Tourism)
#Hoover index for Total expenditure with sample weights
X=Tourism$`Total expenditure`
W=Tourism$`Sample weight`
Hoover(X,W)
[Package wINEQ version 1.2.0 Index]