Concentration ratios

Share:

Description

This is a proof-of-concept implementation of concentration ratios for data with an exogenous order.

Usage

1
2
  concentration_ratio(x, g, ex = order(x, decreasing =
  TRUE))

Arguments

x

Data vector

g

Number of "first" data (according to the order)

ex

Exogenous order of the data vector

Value

The concentration ratio value

See Also

Other concentration: exogeny, herfindahl, rosenbluth

Examples

1
2
3
4
5
6
set.seed(1234)
x <- sample(100000, 10)  # Data
o <- sample(10)          # Exogenous order

concentration_ratio(x, 3)
concentration_ratio(x, 3, ex = o)