Description Usage Arguments Value See Also Examples
This is a proof-of-concept implementation of concentration ratios for data with an exogenous order.
1 2 | concentration_ratio(x, g, ex = order(x, decreasing =
TRUE))
|
x |
Data vector |
g |
Number of "first" data (according to the order) |
ex |
Exogenous order of the data vector |
The concentration ratio value
Other concentration: exogeny
,
herfindahl
, rosenbluth
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)
|
[1] 0.4430011
[1] 0.3024584
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.