R
- comexTLDownloads and analyzes Brazilian foreign trade data.
Stata and MATLAB
- ncointtestNon-cointegration test for bivariate time series, following Souza et al. (2018). Stata. Requires moremata (ssc install moremata).
net install ncointtest, from(https://alanleal.com/files/ncointtest/)
- ncointtest_matlabThe same test in MATLAB.
Data
- Municipal exports by product, 2014–2023Top 50 exported products by year for all Brazilian states, estimated at the HS6 level with the method in Leal and Martins (2025), Revista Brasileira de Estudos Regionais e Urbanos.
All repositories: github.com/alanleal-econ