hhi: Herfindahl-Hirschman Index

Description Usage Arguments Examples

View source: R/describe.R

Description

Herfindahl-Hirschman Index

Usage

1
hhi(x)

Arguments

x

A vector to obtain the HHI.

Examples

1
2
3
4
5
6
7
x <- sample(LETTERS[1:10], size = 1000, replace = TRUE, prob = sqrt(1:10))
hhi(x)
plot(table(x))

x <- sample(LETTERS[1:5], size = 1000, replace = TRUE, prob = 1:5)
hhi(x)
plot(table(x))

jbkunst/irks documentation built on May 22, 2021, 2:09 p.m.