Important note: those programmes are provided "as is". They were designed in particular to accomplish certain goals for the handbook chapter, and to work using a folder structure, not to be general purpose Stata commands. We will answer queries, but users are expected to be able to alter the code to meet their own objectives (to change paths...).
 Monte Carlo 1: Fixed effects
 Here is the master do file for this Monte Carlo.
 Data needed is here.
 Here is the program for SILS (structurally iterated least squares) developed to resemble the method of Anderson and van Wincoop (2003).
 To run it you will need to have the contraction mapping ado file in the same folder.
 Other estimation programs:
 BVU (Bonus Vetus OLS, simple averages), refer to Baier and Bergstrand (2010)
 BVW (Bonus Vetus OLS, GDPweighted), refer to Baier and Bergstrand (2009)
 LSDV (Least squares with country dummies), refer to Harrigan (1996)
 OLS (Linearinlogs with GDPs), refer to Tinbergen (1962)
 Tetrads (Ratios of reference exporter & importer), refer to Head et al. (2010)
 DDM (DoubleDemeaning of LHS & RHS)
 ddmean (program used by DDM)
 Monte Carlo 2: Gravity's Errors
 The four files listed below, pml_a, pml_b, pml_c, and pml_d run the monte carlos for the four panels of Figure 3 which compare performance of OLS with Poisson and Gamma PML under 4 DGPs. The pml_consist_scatter.do makes the figures.
 Metaanalysis
 Here is the master do file for this Metaanalysis.
 Data needed for coefficients and price.
 List containing author, journal and year is here.
 Monte Carlo 3: Structural Zeros
 Here is the master do file for the Monte Carlo. You will also need the contraction mapping.
 This Monte Carlo do file includes the MaMu test (Manning and Mullahy, 2001).
 Here is the do file for different zero shares.
 Do file comparing MaMu and different DGP (Figure 4).
 Data is here:
 Estimation programs:


Updating...
monte1and3_for_website.dta (2699k)
Keith Head, Mar 3, 2013, 9:03 AM
Keith Head, Mar 3, 2013, 9:03 AM
Keith Head, Mar 3, 2013, 9:03 AM
pml_consist_scatter.do (4k) Keith Head, Mar 3, 2013, 9:03 AM
Keith Head, Mar 3, 2013, 9:03 AM
