View source: R/complexity_measures.R
complexity_measures | R Documentation |
complexity_measures()
computes the Economic Complexity
Index and the Product Complexity Index.
complexity_measures(
balassa_index,
method = "fitness",
iterations = 20,
extremality = 1
)
balassa_index |
(Type: dgCMatrix) the output from
|
method |
(Type: character) one of these methods: fitness,
reflections or eigenvalues. By default this is set to |
iterations |
(Type: numeric) the number of iterations to use.
By default this is set to |
extremality |
(Type: numeric) the parameter to use in the fitness
method. The other methods don't use this parameter.
By default this is set to |
The current implementation follows \insertCitemeasuringcomplexity2015economiccomplexity to obtain different alternatives that account for diversification in bipartite relations.
A list of two named numeric vectors.
For more information on this index see:
\insertRefmeasuringcomplexity2015economiccomplexity
and the references therein.
co <- complexity_measures(economiccomplexity_output$balassa_index)
# partial view of indexes
co$complexity_index_country[1:5]
co$complexity_index_product[1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.