gini.index: Measures of Relative Variability - Gini Index

View source: R/gini.index.R

gini.indexR Documentation

Measures of Relative Variability – Gini Index

Description

Gini index for measuring relative inequality (or relative variation) of the data \insertCiteGini_1912lawstat. NAs from the data are omitted.

Usage

gini.index(x)

Arguments

x

the input data.

Details

See also \insertCiteGastwirth_1988v1;textuallawstat.

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

\insertAllCited

See Also

cd, j.maad, lorenz.curve

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"])


lawstat documentation built on April 6, 2023, 1:06 a.m.

Related to gini.index in lawstat...