I am using Eaton and Kortum (2002) General Equilibrium model, so I have to estimate a model by Generalized Least Square to recover a set of structural parameters. For your reference, the paper is included and my purpose is to estimate equation (30) in page 1761. Two issues arise and I will describe them as presented in the title.
The data I am using is the following:
Code:
clear input str14(exporter importer) double contiguity float(dist_1 dist_2) double value "japan" "japan" 0 0 0 1.872360972809597 "japan" "uk" 0 0 1 72.76820000000001 "japan" "usa" 0 0 0 157.77328270894705 "japan" "france" 0 1 0 0 "japan" "brasil" 0 0 1 6.602928528463685 end
I would like to have a clarification to what this means. The model I have ran is the following. While this is, perhaps, GLS simplest form I do not completely understand what EK mean by their assumption about the structure of the errors described above. How would the assumptions translate into code?
Code:
reg value contiguity dist_* i.exporterID i.importerID predict e, residual gen e_sq = e^2 reg e_sq contiguity dist_* i.exporterID i.importerID
Code:
constraint 1 EXPO_FE1 + EXPO_FE2 + EXPO_FE3 + EXPO_FE4 + EXPO_FE5 + EXPO_FE6 + EXPO_FE7 + EXPO_FE8 + EXPO_FE9 + EXPO_FE10 + EXPO_FE11 + EXPO_FE12 + EXPO_FE13 + EXPO_FE14 + EXPO_FE15 + EXPO_FE16 + EXPO_FE17 = -EXPO_FE18 constraint 2 IMPO_FE1 + IMPO_FE2 + IMPO_FE3 + IMPO_FE4 + IMPO_FE5 + IMPO_FE6 + IMPO_FE7 + IMPO_FE8 + IMPO_FE9 + IMPO_FE10 + IMPO_FE11 + IMPO_FE12 + IMPO_FE13 + IMPO_FE14 + IMPO_FE15 + IMPO_FE16 + IMPO_FE17 = - IMPO_FE18 cnsreg dep_value contiguity dist_* EXPO_FE* IMPO_FE* , constraints(1-2) nocons collinear
0 Response to GLS Estimation in Eaton-Kortum (2002): Two-componet error and importer- and exporter- FE interpretation
Post a Comment