Skip to contents

A wrapper for the proposed structural measures

Usage

concstats_all_mstruct(x, na.rm = TRUE, digits = NULL)

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.

digits

A non-null value for digits specifies the minimum number of significant digits to be printed in values. The default is NULL and will use base R print option. Significant digits defaults to 7.

Value

A data.frame.

Details

concstats_all_mstruct returns all proposed group measures in a one step procedure with default settings if not otherwise specified.

Examples

# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_all_mstruct(x, digits = 2)
#>          Measure Value
#> 1          Firms   5.0
#> 2 Nrs_equivalent   3.6
#> 3        Top (%)  40.0
#> 4       Top3 (%)  85.0
#> 5       Top5 (%) 100.0