Learn R Programming

OasisR (version 1.0.0)

GiniMulti: A function to compute multigroup Gini index

Description

Multigroup version of Gini index

Usage

GiniMulti(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

References

Reardon S. F. (1998) Measures of racial diversity and segregation in multigroup and hierarchical structured Populations. Annual meeting of the Eastern Sociological Society, Philadelphia

See Also

Other multigroup eveness indices: HShannon, JPielou, ISimpson, DMulti Other multigroup indices: PIsol, RelDivers

Examples

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

Run the code above in your browser using DataLab