gini.index {lawstat} | R Documentation |
This function measures relative inequality (or relative variation) of the data using the Gini Index. NAs from the data are omitted.
gini.index(x)
x |
the input data. |
A list with the following numeric components.
statistic |
The Gini Index of the data. |
parameter |
the mean difference of a set of numbers. |
data.name |
a character string giving the name of the data. |
Wallace Hui, Yulia R. Gel, Joseph L. Gastwirth, Weiwen Miao
Gastwirth, J. L.(1988) Statistical Reasoning in Law and
Public Policy Vol 1, Boston; Toronto, Academic Press.
Gini, C. Variabilità e mutabilità (1912) Reprinted in Memorie di metodologica statistica (Ed. Pizetti E, Salvemini, T. Rome: Libreria Eredi Virgilio Veschi (1955). English translation in Metron, 2005,63,(1) 3-38
## 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"]) ## Measures of Relative Variability - Gini Index ## ## data: popdata[, "pop1900"] ## Gini Index = 0.1147, delta = 3389.765 gini.index(popdata[,"pop1972"]) ## Measures of Relative Variability - Gini Index ## ## data: popdata[, "pop1972"] ## Gini Index = 0.0055, delta = 1297.973