gini: Normalized Gini heterogeneity index

Description Usage Arguments See Also Examples

View source: R/gini.R

Description

Compute the normalized Gini heterogeneity index for a given discrete probability distribution.

Usage

1
gini(m,prob)

Arguments

m

Number of categories

prob

Vector of the probability distribution or relative frequencies

See Also

laakso

Examples

1
2
3
m<-7
prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
gini(m, prob)

CUB documentation built on May 19, 2017, 4:24 p.m.

Search within the CUB package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.