inequality {microbiome} | R Documentation

## Gini Index

### Description

Calculate Gini indices for a phyloseq object.

### Usage

    inequality(x)

### Arguments

`x` | `phyloseq-class` object

### Details

Gini index is a common measure for relative inequality in economical income, but can also be used as a community diversity measure. Gini index is between [0,1], and increasing gini index implies increasing inequality.

### Value

A vector of Gini indices

### Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

### References

Relative Distribution Methods in the Social Sciences. Mark S. Handcock and Martina Morris, Springer-Verlag, Inc., New York, 1999. ISBN 0387987789.

### See Also

diversity, reldist::gini (inspired by that implementation but independently written here to avoid external depedencies)

### Examples

    data(dietswap)
    d <- inequality(dietswap)

[Package microbiome version 1.14.0 Index]