gini: Normalized Gini heterogeneity index

View source: R/gini.R

giniR Documentation

Normalized Gini heterogeneity index

Description

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

Usage

gini(prob)

Arguments

prob

Vector of probability distribution or relative frequencies

See Also

laakso

Examples

prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
gini(prob)

CUB documentation built on May 29, 2024, 5:23 a.m.