Description Usage Arguments Details References See Also Examples
Calculates the Herfindahl Index of concentration.
1 2 3 4 5 |
x |
a vector of data values of non-negative elements. |
n |
a vector of frequencies of the same length as |
base |
a parameter of the concentration measure (if |
na.rm |
a logical. Should missing values be removed? The Default is set to |
... |
additional arguements (currently ignored) |
This index is also known as the Simpson Index in ecology, the Herfindahl-Hirschman Index (HHI) in economics, and as the Effective Number of Parties (ENP) in political science.
Cowell, F. A. (2000) Measurement of Inequality in Atkinson, A. B. / Bourguignon, F. (Eds): Handbook of Income Distribution. Amsterdam.
Cowell, F. A. (1995) Measuring Inequality Harvester Wheatshef: Prentice Hall.
Atkinson
, Rosenbluth
,
PoliticalDiversity
, Gini
. For more details see the Indices vignette: vignette("Indices", package = "SciencesPo")
1 2 3 4 5 | # generate a vector (of incomes)
x <- c(778, 815, 857, 888, 925, 930, 965, 990, 1012)
# compute the Herfindahl coefficient with base=1
Herfindahl(x, base=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.