Top 3 market share
Arguments
- x
A non-negative numeric vector.
- na.rm
A logical vector that indicates whether
NAvalues should be excluded or not. Must be eitherTRUEorFALSE. The default isTRUE. If set toFALSEthe computation yields a message if the vector containsNAvalues. NAs will be removed for further computations.- digits
An optional value for digits. Specifies the minimum number of significant digits to be printed in values. The default is
NULLand will use base R print option.
Value
A positive numeric value, which indicates the cumulative sum of the top 3 market shares as a percentage.
See also
Other Market structure measures:
concstats_all_mstruct(),
concstats_firm(),
concstats_mstruct(),
concstats_nrs_eq(),
concstats_top(),
concstats_top3_df(),
concstats_top5(),
concstats_top5_df(),
concstats_top_df()
Examples
# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_top3(x, digits = 2)
#> [1] 85
