gini.index | R Documentation |
Gini index for measuring relative inequality (or relative variation) of the data
\insertCiteGini_1912lawstat. NA
s from the data are omitted.
gini.index(x)
x |
the input data. |
See also \insertCiteGastwirth_1988v1;textuallawstat.
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. |
Wallace Hui, Yulia R. Gel, Joseph L. Gastwirth, Weiwen Miao
cd
, j.maad
, lorenz.curve
## 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"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.