Here is a list of some of pieces of code associated with various published papers. The relevant paper to be cited is listed with the relevant code.
The Rise of Market Power and the Macroeconomic Implications, 2020, Quarterly Journal of Economics.
(Mis)Allocation, Market Power, and Global Oil Extraction, 2019, The American Economic Review.
replication and code / description
Prices, Markups and Trade Reform, 2016, Econometrica.
Reallocation and Technology: Evidence from the US Steel Industry, 2015, American Economic Review.
Dynamic Inputs and Resource (Mis)Allocation, 2014, Journal of Political Economy.
Detecting Learning by Exporting, 2013, American Economic Journal: Microeconomics.
Markups and Firm-level Export Status, 2012, American Economic Review.
Product Differentiation, Multi-Product Firms and Estimating the Impact of Trade Liberalization on Productivity, 2011, Econometrica.
Monte Carlo and Code: Production function estimation (soon to be updated):
Production Function Estimation with Measurement Error in Inputs, NBER WP.
Monte Carlo and Estimator Code
Data:
1. Data to generate Figure 1 of The Rise of Market Power and the Macroeconomic Implications, 2020, Quarterly Journal of Economics,: txt file.
2. Aggregate markups from Global Market Power: Country-year (xls) and Continent-year (xls)
3. Quota SIGL database constructed from the EC SIGL to construct product/firm-specific quota measures., used in "Product Differentiation, Multi-Product Firms and Estimating the Impact of Trade Liberalization on Productivity", 2011, Econometrica.