gini.index: Measures of Relative Variability - Gini Index

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function measures relative inequality (or relative variation) of the data using the Gini Index. NAs from the data are omitted.

Usage

1

Arguments

x

the input data.

Value

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.

Author(s)

Wallace Hui, Yulia R. Gel, Joseph L. Gastwirth, Weiwen Miao

References

Gastwirth, J. L.(1988) Statistical Reasoning in Law and Public Policy Vol 1, Boston; Toronto, Academic Press.

Gini, C. Variabilita e mutabilita (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

See Also

cd, j.maad, lorenz.curve

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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

lawstat documentation built on Nov. 23, 2017, 5:05 p.m.