Last chance! 50% off unlimited learning
Sale ends in
Gini index for measuring relative inequality (or relative variation) of the data
Gini_1912lawstat. NA
s from the data are omitted.
gini.index(x)
the input data.
A list with the following components:
the Gini index.
the mean difference of the set of numbers.
a character string giving the name of the data.
See also Gastwirth_1988v1;textuallawstat.
# NOT RUN {
## 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"])
# }
Run the code above in your browser using DataLab