Usage
concstats_grs(x, na.rm = TRUE)
Arguments
- x
A non-negative numeric vector.
- na.rm
a logical vector that indicates whether NA
values should
be excluded or not. Must be either TRUE
or FALSE
. The default
is TRUE
.
If set to FALSE
the computation yields NA
if vector contains
NA
values.
Value
A single numeric measure in decimal form.
References
Ginevicius, R. and S. Cirba (2009). "Additive measurement of
market concentration", Journal of Business Economics and Management,
10(3), 191-198.
Examples
# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_grs(x)
#> [1] 0.3984364
# a vector with NA values
x <- c(0.4, 0.2, 0.25, 0.1, 0.05, NA)
concstats_grs(x, na.rm = FALSE)
#> [1] NA