concstats_hhi_min {concstats}R Documentation

Minimum of Herfindahl-Hirschman Index

Description

Minimum of Herfindahl-Hirschman Index

Usage

concstats_hhi_min(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 the vector contains NA values.

Details

Calculates the minimum of the Herfindahl-Hirschman index, that is, the equivalent of all participants in the market with equal market shares.

Value

A single numeric measure in decimal form.

Examples

# a vector of market shares
x <- c(0.35, 0.4, 0.05, 0.1, 0.06, 0.04)
concstats_hhi_min(x)
# a vector with NA values
x <- c(0.4, 0.2, 0.25, 0.1, 0.05, NA)
concstats_hhi_min(x, na.rm = FALSE)


[Package concstats version 0.1.6 Index]