Learn R Programming

OasisR (version 1.0.0)

Gini: A function to compute Spatial Gini's segregation index

Description

A spatial version of Gini index. It can be derived from the Lorenz curve, and varies between 0 (minimum segregation) and 1 (maximum segregation).

Usage

Gini(x)

Arguments

x
- an object of class matrix (or that can be coerced to that class), where each column represents the distribution of a population group, within spatial units. The number of columns should be greater than one (at least two population groups are require

Value

  • A vector with Gini segregation index

References

Gini C. (1921) Measurement of inequality of income. Economic Journal 31, pp. 22-43

See Also

Other evenness intragroup indices: Duncan, Morill, Wong, Gorard Intergroup dissimilarity index: DI

Examples

Run this code
x <- slot(GreHSize, 'data')[ ,3:5]
Gini(x)

Run the code above in your browser using DataLab