| concstats_comp | R Documentation |
A set of different concentration and competition measures.
concstats_comp(x, normalized = FALSE, type = c("hhi", "hhi_d", "hhi_min",
"dom", "sten", "all"), na.rm = TRUE, digits = NULL)
x |
A non-negative numeric vector. |
normalized |
Logical. Argument specifying whether or not a normalized
value is required. Ranges from {0, 1} and often used for comparison over
time. Must be either |
type |
A character string of the measure to be calculated, can be abbreviated with the first letter. Defaults to "hhi". Input is not case-sensitive. |
na.rm |
A logical vector that indicates whether |
digits |
A non-null value for digits specifies the minimum number of
significant digits to be printed in values. The default is |
concstats_comp is a wrapper for the proposed concentration measures.
All measures can be accessed individually.
concstats_hhi() returns the Herfindahl-Hirschman index (HHI).
concstats_hhi, can be calculated individually as a normalized
measure changing the default setting to TRUE.
concstats_hhi_d() returns the dual of the HHI.
concstats_hhi_min() calculates the minimum of the HHI index.
concstats_dom() calculates the dominance index.
concstats_sten() calculates the stenbacka index.
concstats_all_comp() is a wrapper that computes all measures in a one
step procedure. For more details or references please see the help page of
the respective function.
A single numeric measure in decimal form or data frame.
The vector of market shares should be in a decimal form corresponding
to total shares of individual firms/units. The vector should sum up to 1.
Alternatively, the user might use concstats_shares() to converting raw
variables, e.g. loans or sales into shares.
concstats_concstats(), concstats_mstruct(), concstats_inequ()
Other Competition/Concentration measures:
concstats_all_comp(),
concstats_dom(),
concstats_hhi(),
concstats_hhi_d(),
concstats_hhi_min(),
concstats_sten()
# a vector of market shares
x <- c(0.35, 0.4, 0.05, 0.1, 0.06, 0.04)
# the Herfindahl-Hirschman index of the vector
concstats_comp(x, type = "hhi")
# individual measure
concstats_sten(x)
# complete group measures
concstats_comp(x, type = "all", digits = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.