This is the code and data associated with Ravikumar and Waugh (2016) Measuring Openness to Trade. There are several files. The first file measuring_openness_measure.m loads in data from the Penn World Table (here given as openness_data.xls), then computes the two openness measures that we proposed and then plots Figures (1) and (2) from the paper.
Future updates will compare the relative openness index and estimates of trade costs. That is figure 3.
Measuring Openness to Trade, with B. Ravikumar.
Journal of Economic Dynamics and Control, Volume 72, November 2016.