Programming Appendix for paper: Estimating Lost Output from Allocative Inefficiency, with Application to Chile and Firing Costs

1.  The STATA code used to construct the capital series is available here:  capital_construction.do

2.  The STATA code used for the three main production function estimates is available here:  production_functions.do

3.  The STATA code used for the estimating the gaps and running the baseline regressions is available here:  gap_estimation.do

(Users of the code are requested to cite our paper: Petrin, A and Sivadasan, J. "Estimating Lost Output from Allocative Inefficiency, with Application to Chile and Firing Costs" forthcoming in the The Review of Economics and Statistics.)