Learn R Programming

economiccomplexity (version 2.0.0)

density: Density

Description

density() computes the density matrix that accounts for the weighted proportions of the products connected to each good that the countries are exporting.

Usage

density(balassa_index, proximity_product)

Value

A matrix.

Arguments

balassa_index

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

proximity_product

(Type: matrix) the output from proximity()) or an equivalent arrangement.

Details

The current implementation follows atlas2014economiccomplexity to measure the oppotunities implied by a country's position.

References

For more information on this index see:

atlas2014economiccomplexity

and the references therein.

Examples

Run this code
d <- density(
  economiccomplexity_output$balassa_index,
  economiccomplexity_output$proximity$proximity_product
)

# partial view of the density matrix
n <- seq_len(5)
d[n, n]

Run the code above in your browser using DataLab