herfindahl: Computes the Herfindahl-(Hirschmann) index measure of...

Description Usage Arguments Value Examples

View source: R/herfindahl.R

Description

Computes the Herfindahl-(Hirschmann) index measure of concentration.

Usage

1

Arguments

x

[numeric]
Vector of (positive) numbers.

Value

[numeric(1)] Herfindahl index.

Examples

1
2
3
x = c(1, 5, 19, 7, 8)
H = herfindahl(x)
print(H)

jakobbossek/locu documentation built on May 18, 2019, 10:10 a.m.