complexity_measures: Complexity Measures

Description Usage Arguments Details Value References Examples

View source: R/complexity_measures.R

Description

complexity_measures() computes the Economic Complexity Index and the Product Complexity Index.

Usage

1
2
3
4
5
6
complexity_measures(
  balassa_index,
  method = "fitness",
  iterations = 20,
  extremality = 1
)

Arguments

balassa_index

(Type: dgCMatrix) the output from balassa_index()) or an equivalent arrangement.

method

(Type: character) one of these methods: fitness, reflections or eigenvalues. By default this is set to "fitness".

iterations

(Type: numeric) the number of iterations to use. By default this is set to 20.

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 1.

Details

The current implementation follows \insertCitemeasuringcomplexity2015economiccomplexity to obtain different alternatives that account for diversification in bipartite relations.

Value

A list of two named numeric vectors.

References

For more information on this index see:

\insertRef

measuringcomplexity2015economiccomplexity

and the references therein.

Examples

1
2
3
4
5
co <- complexity_measures(economiccomplexity_output$balassa_index)

# partial view of indexes
co$complexity_index_country[1:5]
co$complexity_index_product[1:5]

economiccomplexity documentation built on Jan. 13, 2021, 5:41 p.m.