Trade Proximity: Data & Code
Cosine Trade Proximity (CTP) compares a country’s export and import baskets through the product space. It captures relatedness across different products as well as exact product matches.
Economics Letters — code and replication data
Download the replication package (ZIP, 2.7 MB)
Includes Python code, a README and country-level indices for 1996–2024 at HS96 2-, 4- and 6-digit levels. The code reproduces the reported statistics from the bundled outputs and provides commands to rebuild estimates from BACI. Raw BACI files must be obtained separately from CEPII; they are not included.
Please cite: Joyez, C. (2026). “Beyond Exact Match: A Product-Space Measure of Trade Similarity.” Economics Letters, 269, 113339. Published article.
Earlier database release (1996–2023)
Retained for reproducibility: HS96 4-digit CSV · HS96 2-digit CSV. See the earlier GREDEG working paper (2026-02).