Usage
concstats_sten(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 NA
values
are present.
Value
A single numeric measure in decimal form.
Details
concstats_sten
calculates the Stenbacka index,
which indicates the market share of a dominant position.
References
Melnik, A., Shy, Oz, Stenbacka, R., (2008), "Assessing market
dominance", Journal of Economic Behavior and Organization,
68: pp. 63-72.
Examples
# a vector of market shares
x <- c(0.35, 0.4, 0.05, 0.1, 0.06, 0.04)
concstats_sten(x)
#> [1] 48.125
# a vector with NA values
x <- c(0.4, 0.2, 0.25, 0.1, 0.05, NA)
concstats_sten(x, na.rm = FALSE)
#> [1] NA