concentration_ratio: Concentration ratios

Description Usage Arguments Value See Also Examples

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)

Example output

[1] 0.4430011
[1] 0.3024584

SportsAnalytics documentation built on May 2, 2019, 7 a.m.