These are the Stata commands used to generate Tables 2 and 3 in the article "The Determinants of Aid in the Post-Cold War Era" by Subhayu Bandyopadhyay and Howard J. Wall for the November/December 2007, Vol. 89(6) issue of the Federal Reserve Bank of St. Louis Review. Variables and their descriptions can be found in the excel data sheet: Review-Bandy-Wall-Foreign Aid.xls This used Intercooled Stata 6.0 clear version 6.0 # delimit ; set memory 50m; set matsize 800; set more off; log using ling2log, replace; /*Need to change the directory and data file name. The data file is listed above.*/ insheet using c:\datasets\foreignaid\aidppp90ge.txt, tab names clear; save aid.dta, replace; use aid.dta; /*Some basic calculations and data manipulation*/ generate gdpcap = rgdpcap/1000; generate gdpcap2 = gdpcap^2; generate infmort2 = infmort^2; generate cvlib = 8-civlib; generate cvlib2 = cvlib^2; generate pright = 8-polright; generate pright2 = pright^2; generate pop2 = popmil^2; generate goveff2 = goveff^2; generate rights = cvlib + pright; /*The following generates the numbers for Tables 2 and 3 (Regression Results; Wald Tests of Joint Significance)*/ /*No fixed effects*/ xtgls raid gdpcap gdpcap2 infmort infmort2 rights goveff popmil pop2 y2-y3, i(countryi) t(year) p(h); test gdpcap gdpcap2; test infmort infmort2; test popmil pop2; /*With fixed effects*/ xtgls raid gdpcap gdpcap2 infmort infmort2 rights goveff popmil pop2 y2-y3 c1-c3 c5-c10 c12-c15 c17-c138, i(countryi) t(year) p(h); test gdpcap gdpcap2; test infmort infmort2; test popmil pop2; log off;