gini.index {lawstat} | R Documentation |
Measures of Relative Variability – Gini Index
Description
Gini index for measuring relative inequality (or relative variation) of the data
(Gini 1912). NA
s from the data are omitted.
Usage
gini.index(x)
Arguments
x |
the input data. |
Details
See also Gastwirth (1988).
Value
A list with the following components:
statistic |
the Gini index. |
parameter |
the mean difference of the set of numbers. |
data.name |
a character string giving the name of the data. |
Author(s)
Wallace Hui, Yulia R. Gel, Joseph L. Gastwirth, Weiwen Miao
References
Gastwirth JL (1988).
Statistical Reasoning in Law and Public Policy: Statistical Concepts and Issues of Fairness, volume 1.
Academic Press, San Diego, CA.
Gini C (1912).
“Variabilita e mutabilita.”
Reprinted in Memorie di Metodologica Statistica (Ed. Pizetti E. and Salvemini, T.), 1955, Rome: Libreria Eredi Virgilio Veschi.
English translation in Metron, 2005, 63(1): 3–38.
See Also
Examples
## The Baker v. Carr Case: one-person-one-vote decision.
## Measure of Relative Inequality of Population data in 33 districts
## of the Tennessee Legislature in 1900 and 1972. See
## popdata (see Gastwirth (1988)).
data(popdata)
gini.index(popdata[,"pop1900"])
gini.index(popdata[,"pop1972"])
[Package lawstat version 3.6 Index]