capture log close capture clear capture clear matrix log using replication.log, replace set more off drop _all set varabbrev off, permanently * Replication of Békés/Muraközy, Economics Letters 2016 * Version: February 21, 2017 * ---------------------------------------------------------------------- * EFIGE data (public use version) * ---------------------------------------------------------------------- use efige_stata.dta * Country - numerical indicators generate land = . replace land = 1 if country == "AUT" replace land = 2 if country == "GER" replace land = 3 if country == "FRA" replace land = 4 if country == "HUN" replace land = 5 if country == "ITA" replace land = 6 if country == "SPA" replace land = 7 if country == "UK" * Internationalization modes (dummy-variables; 1 = yes, 0 = no) * direct exporter in 2008 generate exporter_dir = . replace exporter_dir = 1 if d1_m_c1 == 1 replace exporter_dir = 0 if d1_m_c1 == 0 tab exporter_dir * indirect exporter via intermediary in home country in 2008 generate exporter_indir = . replace exporter_indir = 1 if d1_m_c3 == 1 replace exporter_indir = 0 if d1_m_c3 == 0 tab exporter_indir * outsourcer of manufacturing currently generate outsourcer = . replace outsourcer = 1 if d37_m_c2 == 1 replace outsourcer = 0 if d37_m_c2 == 0 tab outsourcer * firm runs part of its production in another country by direct investment generate FDI_manufact = . replace FDI_manufact = 1 if d37_m_c1 == 1 replace FDI_manufact = 0 if d37_m_c1 == 0 tab FDI_manufact * firm has fdi but no manufacturing fdi (i.e., only services fdi) generate foreign_affiliate = . replace foreign_affiliate = 1 if a15 == 2 | a15 == 3 replace foreign_affiliate = 0 if a15 == 1 | a15 == 4 tab foreign_affiliate generate FDI_service = . replace FDI_service = 1 if foreign_affiliate == 1 & FDI_manufact == 0 replace FDI_service = 0 if foreign_affiliate == 0 replace FDI_service = 0 if foreign_affiliate == 1 & FDI_manufact == 1 tab FDI_service tab FDI_manufact FDI_service * firm has none of these types of internationalization generate none = . replace none = 1 if exporter_dir + exporter_indir + outsourcer + FDI_manufact + FDI_service == 0 replace none = 0 if exporter_dir + exporter_indir + outsourcer + FDI_manufact + FDI_service > 0 & exporter_dir + exporter_indir + outsourcer + FDI_manufact + FDI_service != . tab none * Total factor productivity - using tfp_va keep if tfp_va != . generate tfp = tfp_va sum tfp * tfp country and industry demeaned following Bekes-Muraközy regress tfp i.land i.sector predict dem gen tfp_demeaned_1 = tfp - dem drop dem sum tfp tfp_demeaned_1 * Replication of Table 1, column (1) generate indexp = . replace indexp = 1 if exporter_indir == 1 replace indexp = 0 if none == 1 regress tfp_demeaned_1 indexp, vce(r) drop indexp * Replication of Table 1, column (2) generate direxp = 1 if exporter_dir == 1 replace direxp = 0 if none == 1 regress tfp_demeaned_1 direxp, vce(r) drop direxp * Replication of Table 1, column (3) generate outman = 1 if outsourcer == 1 replace outman = 0 if none == 1 regress tfp_demeaned_1 outman, vce(r) drop outman * Replication of Table 1, column (4) generate servfdi = 1 if FDI_service == 1 replace servfdi = 0 if none == 1 regress tfp_demeaned_1 servfdi, vce(r) drop servfdi * Replication of Table 1, column (5) generate manfdi = 1 if FDI_manufact == 1 replace manfdi = 0 if none == 1 regress tfp_demeaned_1 manfdi, vce(r) drop manfdi * Replication of Table 1, column (6) regress tfp_demeaned_1 exporter_indir exporter_dir outsourcer FDI_service FDI_manufact, vce(r) sum tfp tfp_demeaned_1 if e(sample) * Replication of Table 2, column 1 generate manfdi = . replace manfdi = 1 if FDI_manufact == 1 replace manfdi = 0 if FDI_manufact == 0 generate servfdi = . replace servfdi = 1 if FDI_service == 1 & FDI_manufact == 0 replace servfdi = 0 if FDI_service == 0 replace servfdi = 0 if FDI_manufact == 1 generate outman = . replace outman = 1 if outsourcer == 1 & manfdi == 0 & servfdi == 0 replace outman = 0 if outsourcer == 0 replace outman = 0 if manfdi == 1 replace outman = 0 if servfdi == 1 generate direxp = . replace direxp = 1 if exporter_dir == 1 & manfdi == 0 & servfdi == 0 & outman == 0 replace direxp = 0 if exporter_dir == 0 replace direxp = 0 if manfdi == 1 replace direxp = 0 if servfdi == 1 replace direxp = 0 if outman == 1 generate indexp = . replace indexp = 1 if exporter_indir == 1 & manfdi == 0 & servfdi == 0 & outman == 0 & direxp == 0 replace indexp = 0 if exporter_indir == 0 replace indexp = 0 if manfdi == 1 replace indexp = 0 if servfdi == 1 replace indexp = 0 if outman == 1 replace indexp = 0 if direxp == 1 regress tfp_demeaned_1 indexp direxp outman servfdi manfdi, vce(r) sum tfp tfp_demeaned_1 if e(sample) * Replication of Table 2, column 2 drop outman generate outman = . replace outman = 1 if outsourcer == 1 & manfdi == 0 & servfdi == 0 & direxp == 0 replace outman = 0 if outsourcer == 0 replace outman = 0 if manfdi == 1 replace outman = 0 if servfdi == 1 replace outman = 0 if direxp == 1 drop direxp generate direxp = . replace direxp = 1 if exporter_dir == 1 & manfdi == 0 & servfdi == 0 replace direxp = 0 if exporter_dir == 0 replace direxp = 0 if manfdi == 1 replace direxp = 0 if servfdi == 1 regress tfp_demeaned_1 indexp direxp outman servfdi manfdi, vce(r) sum tfp tfp_demeaned_1 if e(sample) exit, STATA clear