Compute the density and distance hausmann2006structuralpecan based on the RCA and proximity values.
densdist(RCAmat, PROXmat, measure = c("density", "distance"))A economy-by-product matrix with the measured values.
An economy-by-product matrix with the RCA values.
A product-by-product matrix with the proximity values.
A character string specifying the measure to compute:
"density": the new product’s proximity to the economy's current export basket.
"distance": the economy's ability to enter a specific product.