proximity {economiccomplexity} | R Documentation |
Proximity
Description
proximity()
computes two matrices that account for the
similarity between pairs of countries and pairs of products.
Usage
proximity(balassa_index, compute = "both")
Arguments
balassa_index |
(Type: dgCMatrix) the output from
|
compute |
(Type: character) the proximity to compute. By default this is
|
Details
The current implementation follows (Hausmann et al. 2014) 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.
Value
A list of two matrices.
References
For more information see:
Hausmann R, Hidalgo C, Bustos S, Coscia M, Simoes A, Yildirim M (2014). The atlas of economic complexity: Mapping paths to prosperity. MIT Press. doi:10.7551/mitpress/9647.001.0001.
and the references therein.
Examples
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]