Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

conc

Concentration Measures


Description

computes the concentration within a vector according to the specified concentration measure

Usage

conc(x, parameter = NULL, type = c("Herfindahl", "Rosenbluth"), na.rm = TRUE)

Herfindahl(x, parameter = 1, na.rm = TRUE)
Rosenbluth(x, na.rm = TRUE)

Arguments

x

a vector containing non-negative elements

parameter

parameter of the concentration measure (if set to NULL the default parameter of the respective measure is used)

type

character string giving the measure used to compute concentration. must be one of the strings in the default argument (the first character is sufficient). defaults to "Herfindahl".

na.rm

logical. Should missing values (NAs) be removed prior to computations? If set to FALSE the computations yield NA.

Details

conc is just a wrapper for the concentration measures of Herfindahl and Rosenbluth (Hall / Tiedemann / Rosenbluth). If parameter is set to NULL the default from the respective function is used.

Value

the value of the concentration measure

References

F A Cowell: Measurement of Inequality, 2000, in A B Atkinson / F Bourguignon (Eds): Handbook of Income Distribution, Amsterdam,

F A Cowell: Measuring Inequality, 1995 Prentice Hall/Harvester Wheatshef,

M Hall / N Tidemann: Measures of Concentration, 1967, JASA 62, 162-168.

See Also

Examples

# generate vector (of sales)
x <- c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
# compute Herfindahl coefficient with parameter 1
conc(x)
# compute coefficient of Hall/Tiedemann/Rosenbluth
conc(x, type="Rosenbluth")

ineq

Measuring Inequality, Concentration, and Poverty

v0.2-13
GPL-2 | GPL-3
Authors
Achim Zeileis [aut, cre], Christian Kleiber [ctb]
Initial release
2014-07-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.