The following import demand and export supply elasticities are produced using the hybrid Feenstra (1994) / Broda & Weinstein (2006) methodology described in Soderbery (2015). Estimates are from US import data over the period 1993-2007. The code is written in a general form that allows users to easily adapt the estimator to their data. One point to note for those using the estimates directly. For consistency, I have imposed the constraint that ρ< (σ-1)/σ ex post. This constraint is violated around 10% of the time by the actual estimates of θ1 and θ2, and can be overcome by recalculating ρ. Please cite the use of data and code as follows: Soderbery, Anson, “Estimating Import Supply and Demand Elasticities: Analysis and Implications,” Journal of International Economics, 96(1), May 2015: pp 1-17.