proximity() computes two matrices that account for the
similarity between pairs of countries and pairs of products.
proximity(balassa_index, compute = "both")
(Type: dgCMatrix) the output from
(Type: character) the proximity to compute. By default this is
The current implementation follows \insertCiteatlas2014economiccomplexity to obtain the likelihood that two products "p1" and "p2" are exported by the same country and, conversely, that two countries "c1" and "c2" export the same product.
A list of two matrices.
For more information see:\insertRef
and the references therein.
pro <- proximity(economiccomplexity_output$balassa_index) # partial view of proximity matrices pro$proximity_country[1:5, 1:5] pro$proximity_product[1:5, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.