concstats_concstats | R Documentation |
A convenience function which calculates a selected set of different market structure, inequality and concentration measures more or less commonly used, e.g. k-firm ratios, Entropy, HHI, Palma ratio, and others in a one step procedure to provide a first overview.
concstats_concstats(x, na.rm = TRUE, digits = NULL)
x |
A non-negative numeric vector. |
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_concstats
computes a set of different and selected
structural, inequality, and concentration measures in a one step procedure.
The resulting data frame
contains eight measures: number of firms with
market share, numbers equivalent, the cumulative share of the top
(top 3 and top 5) firm(s) in percentage, the hhi index, the entropy index,
and the palma ratio. However, all measures can be computed individually or
in groups.
A data frame
of numeric measures with default settings.
The vector of market shares should be in a decimal form corresponding to the total share of individual firms/units. The vector should sum up to 1.
concstats_mstruct()
, concstats_comp()
, concstats_inequ()
# a vector of market shares
x <- c(0.35, 0.4, 0.05, 0.1, 0.06, 0.04)
# a selected set of different structural, concentration, and inequality
# measures
concstats_concstats(x, digits = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.