inequality: Gini Index

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

View source: R/inequality.R

Description

Calculate Gini indices for a phyloseq object.

Usage

1

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

1
2

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.