├── .gitattributes ├── README.md ├── appel-loyle-2012 ├── appel-loyle-reference.txt ├── appelloyle_jprdata.dta └── appelloyle_jprdofile.do ├── braithwaite-2006 ├── braithwaite-reference.txt ├── file48280_braith_final_data.dta └── file48281_braith_final_analysis.do ├── fuhrmann-2008 ├── Fuhrmann Codebook.doc ├── JPR Final 07765.dta └── fuhrmann-reference.txt ├── furia-lucas-2008 ├── DeterminantsofArabOpiniononForeignRelations_sav.sav └── furia-lucas-reference.txt ├── ghobarah-etal-2004 ├── ghobarah-etal-reference.txt └── huthrussettghobarah_data_article5.xls ├── goldsmith-horiuchi-2012 ├── Pew44nations2002_20090819.dta ├── _interpretation.do ├── _ivregression.do ├── _multiple.imputation.do ├── _regression.do ├── _regression_copy_309.do ├── data_2011-07-26.dta ├── goldsmith-horiuchi-reference.txt └── smoking.dta ├── kono-2006 ├── kono-2006-reference.txt ├── manifesto data.dta ├── national ntbs original.dta ├── national tariffs original.dta ├── regressions.do └── sectoral ntbs original.dta ├── kono-2007 ├── Data Appendix.pdf ├── MANIFEST.TXT ├── Tradeblocsntbs.tab ├── Tradeblocstariffs.tab ├── kono-2007-reference.txt ├── trade blocs ntbs.dta ├── trade blocs regressions.do └── trade blocs tariffs.dta ├── leblang-1996 ├── leblang-reference.txt └── prq95.dta ├── potter-tavits-2015 ├── Replication Code.R ├── potter-tavits-reference.txt └── potter_tavits_data.dta ├── reuveny-li-2003 ├── replicate.do ├── replicate.dta └── reuvney-li-reference.txt └── simple-panel-models └── besley-etal-2010 ├── .Renviron ├── .Rhistory ├── 40836649.pdf ├── besley-etal-reference.txt ├── besley-etal-rep.R └── formatteddata.dta /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cross-sectional-ols 2 | Replication of published work is a common part of introductory social science methods courses. In classes on OLS, work with cross-sectional data is easiest to replicate, but these papers are also hard to find. 3 | 4 | This repository contains replication materials for some papers with cross-sectional data and an OLS estimator. Each folder contains the paper and replication data, and some also have code. 5 | 6 | In addition, the simple-panel-models folder contains a paper with an OLS estimator and panel data. 7 | 8 | To use the repository, you can download or clone the whole thing, or download individual files for a particular paper. 9 | 10 | Feel free to add data or papers via pull requests or forking the repository and making changes. Alternatively, you can also email me. 11 | 12 | For a longer introduction, see [this introductory blog post at *The Political Methodologist*](https://polmeth.org/blog/open-collection-political-science-research-ols-models-and-cross-sectional-data). 13 | -------------------------------------------------------------------------------- /appel-loyle-2012/appel-loyle-reference.txt: -------------------------------------------------------------------------------- 1 | Appel, Benjamin J. and Cyanne E. Loyle. 2012. 2 | "The economic benefits of justice: Post-conflict justice and foreign direct investment." 3 | Journal of Peace Research 49(5): 685-99. 4 | 5 | DOI: 10.1177/0022343312450044 -------------------------------------------------------------------------------- /appel-loyle-2012/appelloyle_jprdata.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/appel-loyle-2012/appelloyle_jprdata.dta -------------------------------------------------------------------------------- /appel-loyle-2012/appelloyle_jprdofile.do: -------------------------------------------------------------------------------- 1 | 2 | 3 | *Table 1: final equations 4 | 5 | *Economic EQ 6 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 xratf labor v64mean 7 | 8 | *Institutions EQ 9 | reg v3Mdiff truthvictim fv27 polity2 10 | 11 | *Conflict EQ 12 | reg v3Mdiff truthvictim damage cw_duration_lag peace_agreement_lag victory_lag 13 | 14 | *Final EQ 15 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean 16 | 17 | 18 | *robustness checks - using different measure of FDI inflows. 19 | 20 | *Institutions EQ 21 | reg v2diff truthvictim fv8 fv10 fv11 fv34 xratf labor v64mean 22 | 23 | *domestic institutions 24 | reg v2diff truthvictim fv27 polity2 25 | 26 | *Conflict EQ 27 | reg v2diff truthvictim damage cw_duration_lag peace_agreement_lag victory_lag 28 | 29 | *Final EQ 30 | reg v2diff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean 31 | 32 | *human rights robustness checks 33 | 34 | *adding physical integrity 35 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean physint 36 | 37 | *adding phystical integrity and worker 38 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean physint worker 39 | 40 | *adding phystical, integrity, worker's rights, secondary education (women) 41 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean physint worker v60mean 42 | 43 | *adding phystical, integrity, worker's rights, secondary education (women), and Raw Materials 44 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean physint worker v60mean v63mean 45 | 46 | *appendix a: cem equation 47 | *several coarsened techniques were tried. the automated procedure produced the most balanced dataset, so we used that in our analysis. 48 | cem peace_agreement_lag damage victory_lag issue_territory_lag, tr(truthvictim) 49 | reg v3Mdiff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean [iweight=cem_weights] 50 | 51 | reg v2diff truthvictim fv8 fv10 fv11 fv34 fv27 victory_lag cw_duration_lag damage peace_agreement_lag coldwar polity2 xratf labor v64mean [iweight=cem_weights] 52 | 53 | -------------------------------------------------------------------------------- /braithwaite-2006/braithwaite-reference.txt: -------------------------------------------------------------------------------- 1 | Braithwaite, Alex. 2006. 2 | "The Geographic Spread of Militarized Disputes" 3 | Journal of Peace Research 43(5): 507-22. 4 | 5 | DOI 10.1177/0022343306066627 -------------------------------------------------------------------------------- /braithwaite-2006/file48280_braith_final_data.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/braithwaite-2006/file48280_braith_final_data.dta -------------------------------------------------------------------------------- /braithwaite-2006/file48281_braith_final_analysis.do: -------------------------------------------------------------------------------- 1 | version 7.0 2 | log using "C:\My Documents\Alex\JPR\braith_jpr_RR.log", replace 3 | #delimit; 4 | set more off; 5 | ***********************************************************; 6 | * Braith (Nov 1st, 2005) For JPR: the geog spread of mids *; 7 | ***********************************************************; 8 | 9 | cd "C:\My Documents\Alex\JPR\"; 10 | set mem 100m; 11 | set matsize 100; 12 | use final_data.dta; 13 | 14 | summ; 15 | corr logcap_ratio allies joint_democ territory logsize host_mt host_for water cwpceyrs bord_vital host_resource incidents logdurat final_hostile; 16 | ; 17 | 18 | 19 | ********************; 20 | *Specific day one models*; 21 | reg log_radius_area territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, robust; 22 | vif; 23 | hettest; 24 | tobit log_radius_area territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, ll(0); 25 | 26 | *models with dyadic controls*; 27 | reg log_radius_area logcap_ratio allies joint_democ territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, robust; 28 | vif; 29 | hettest; 30 | tobit log_radius_area logcap_ratio allies joint_democ territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, ll(0); 31 | 32 | *models without dyadic and with post-hoc*; 33 | reg log_radius_area incidents logdurat final_hostile territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, robust; 34 | vif; 35 | hettest; 36 | tobit log_radius_area incidents logdurat final_hostile territory logsize host_mt host_for water cwpceyrs bord_vital host_resource if final_hostile>0, ll(0); 37 | 38 | save "C:\My Documents\Alex\JPR\final_data.dta", replace ; 39 | exit, clear; 40 | -------------------------------------------------------------------------------- /fuhrmann-2008/Fuhrmann Codebook.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/fuhrmann-2008/Fuhrmann Codebook.doc -------------------------------------------------------------------------------- /fuhrmann-2008/JPR Final 07765.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/fuhrmann-2008/JPR Final 07765.dta -------------------------------------------------------------------------------- /fuhrmann-2008/fuhrmann-reference.txt: -------------------------------------------------------------------------------- 1 | Fuhrmann, Matthew. 2008. 2 | "Exporting Mass Destruction? The Determinants of Dual-Use Trade" 3 | Journal of Peace Research 45(5): 633-652. 4 | 5 | DOI 10.1177/0022343308094324 6 | 7 | -------------------------------------------------------------------------------- /furia-lucas-2008/DeterminantsofArabOpiniononForeignRelations_sav.sav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/furia-lucas-2008/DeterminantsofArabOpiniononForeignRelations_sav.sav -------------------------------------------------------------------------------- /furia-lucas-2008/furia-lucas-reference.txt: -------------------------------------------------------------------------------- 1 | Furia, Peter A. and Russel A. Lucas. 2008. 2 | "Determinants of Arab Public Opinion on Foreign Relations." 3 | International Studies Quarterly 50: 585-605. 4 | 5 | -------------------------------------------------------------------------------- /ghobarah-etal-2004/ghobarah-etal-reference.txt: -------------------------------------------------------------------------------- 1 | Ghobarah, Hazem Adam, Paul Huth, & Bruce Russett. 2004. 2 | "Comparative Public Health: The Political Economy of Human Misery and Well-Being" 3 | International Studies Quarterly, 48(1): 73-94. 4 | 5 | http://www.jstor.org/stable/3693564 -------------------------------------------------------------------------------- /ghobarah-etal-2004/huthrussettghobarah_data_article5.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/ghobarah-etal-2004/huthrussettghobarah_data_article5.xls -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/Pew44nations2002_20090819.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/goldsmith-horiuchi-2012/Pew44nations2002_20090819.dta -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/_interpretation.do: -------------------------------------------------------------------------------- 1 | /* Interpretation */ 2 | 3 | keep if $x~=. 4 | sum $x 5 | global n 21 6 | global ave=round(_result(3), 0.01) 7 | global min=round(_result(3)-_result(4)^(1/2), 0.01) 8 | global max=round(_result(3)+_result(4)^(1/2), 0.01) 9 | global bin=($max-$min)/($n-1) 10 | 11 | gen xx=. 12 | local i=1 13 | while `i'<=$n{ 14 | replace xx=$min+$bin*(`i'-1) if _n==`i' 15 | local i=`i'+1 16 | } 17 | la var xx "Positive - Negative" 18 | 19 | save temp, replace 20 | 21 | capture program drop myint 22 | program define myint 23 | 24 | gen predy_lo=. 25 | gen predy_hi=. 26 | gen predy_av=. 27 | 28 | setx mean 29 | 30 | local i=1 31 | while `i'<=$n{ 32 | capture drop yy 33 | setx $x xx[`i'] 34 | simqi, `1' `2'(yy) 35 | if "`2'"=="genpr"{ 36 | replace yy=1-yy 37 | } 38 | else if "`2'"=="genev"{ 39 | replace yy=yy/100 40 | } 41 | _pctile yy, p(2.5, 97.5) 42 | * _pctile yy, p(5, 95) 43 | sort xx 44 | replace predy_lo=r(r1) if _n==`i' 45 | replace predy_hi=r(r2) if _n==`i' 46 | sum yy 47 | replace predy_av=_result(3) if _n==`i' 48 | local i=`i'+1 49 | } 50 | 51 | keep xx predy_* 52 | keep if xx~=. 53 | gen dv=`3' 54 | save temp`3', replace 55 | 56 | end 57 | 58 | 59 | use temp, clear 60 | estsimp $model iraq_dum $x $z1 $nonnat, vce($vceoption) 61 | myint pr genpr 1 62 | 63 | use temp, clear 64 | estsimp $model article98 $x $z2 $nonnat, vce($vceoption) 65 | myint pr genpr 2 66 | 67 | use temp, clear 68 | estsimp reg unvoting $x $z1 $nonnat, vce($vceoption) 69 | myint ev genev 3 70 | 71 | use temp1, clear 72 | append using temp2 73 | append using temp3 74 | #delimit; 75 | la define dv 1 "P( Sent Troops in Iraq in 2003 = 1 )" 76 | 2 "P( BIA entered into force in 2003 = 1 )" 77 | 3 "E( UN voting with US, ratio )"; 78 | #delimit cr 79 | 80 | la val dv dv 81 | set graph off 82 | 83 | #delimit; 84 | tw (scatter predy_av xx, c(l) ) 85 | (rcap predy_hi predy_lo xx), 86 | legend(off) ylab(0 0.5 1.0) xlab($min $ave $max) xtitle("Opinion About US Foreign Policy") 87 | by(dv, yresc col(1) legend(off) note("")); 88 | #delimit cr 89 | 90 | set graph on 91 | graph display, ysize(7) xsize(6) scheme(s2mono) scale(0.8) 92 | * graph display, ysize(4.95) xsize(9) scheme(s2mono) scale(1.2) 93 | 94 | capture erase temp.dta 95 | capture erase temp1.dta 96 | capture erase temp2.dta 97 | capture erase temp3.dta 98 | -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/_ivregression.do: -------------------------------------------------------------------------------- 1 | sort ccode 2 | save temp, replace 3 | use Pew44nations2002_20090819, clear 4 | replace ccode=255 if ccode==260 5 | sort ccode 6 | merge 1:1 ccode using temp 7 | capture erase temp.dta 8 | 9 | * Regression with instruments 10 | 11 | gen x61b=p_q61b_pos-p_q61b_neg 12 | gen x61d=p_q61d_pos-p_q61d_neg 13 | global iv x61b x61d 14 | 15 | ivregress 2sls iraq_dum ($x =$iv) $z1 $nonnat, vce($vceoption) first 16 | outreg $x $z1 $nontat using table_iv__$date.txt, $opt replace 17 | estat firststage 18 | estat endogenous 19 | estat overid 20 | 21 | ivregress 2sls article98 ($x =$iv) $z1, vce($vceoption) first 22 | outreg $x $z1 $nontat using table_iv__$date.txt, $opt append 23 | estat firststage 24 | estat endogenous 25 | estat overid 26 | 27 | ivregress 2sls unvoting ($x =$iv) $z1, vce($vceoption) first 28 | outreg $x $z1 $nontat using table_iv__$date.txt, $opt append 29 | estat firststage 30 | estat endogenous 31 | estat overid 32 | -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/_multiple.imputation.do: -------------------------------------------------------------------------------- 1 | /* Multiple Imputation */ 2 | 3 | drop if unvoting==. 4 | drop if s_lead==. /* East Timor */ 5 | 6 | keep country ccode iraq_dum article98 unvoting $x $z1 7 | 8 | mi set wide 9 | mi register imputed $x lntrade lngdppc 10 | set seed 29390 11 | #delimit; 12 | mi impute mvn $x lntrade lngdppc = 13 | s_lead muslimpct nato aid_m aid_e icc afgh_dum unvoting article98 14 | europe iraq_dum freedomhouse 15 | , add(20) initmcmc(em, iterate(2000)); 16 | #delimit cr 17 | 18 | mi est: $model iraq_dum $x , vce($vceoption) 19 | mi est: $model iraq_dum $x $z1 $nonnat, vce($vceoption) 20 | 21 | mi est: $model article98 $x , vce($vceoption) 22 | mi est: $model article98 $x $z2 $nonnat, vce($vceoption) 23 | 24 | mi est: reg unvoting $x , vce($vceoption) 25 | mi est: reg unvoting $x $z1 $nonnat, vce($vceoption) 26 | 27 | mi xeq 0 1 20: sum x $z1 28 | 29 | * Check wether regime-type interactions matter 30 | gen x_free=$x*freedomhouse 31 | mi est: $model iraq_dum $x x_free $z1 $nonnat, vce($vceoption) 32 | mi est: $model article98 $x x_free $z2 $nonnat, vce($vceoption) 33 | mi est: reg unvoting $x x_free $z1 $nonnat, vce($vceoption) 34 | -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/_regression.do: -------------------------------------------------------------------------------- 1 | /* Regression Analysis */ 2 | 3 | clear 4 | set more off 5 | global date 2011-07-26 6 | use data_$date 7 | 8 | * Make some new variables 9 | gen iraq_dum=(troops_iraq>0) 10 | gen afgh_dum=(troops_afgh>0) 11 | gen freedomhouse=(pr+cl) 12 | 13 | * Average of VOP2002, PreIraq, and PostIraq 14 | egen positive_A=rowmean(pos1 pos2 pos3) 15 | egen negative_A=rowmean(neg1 neg2 neg3) 16 | gen nonnat_A=(nonnat1+nonnat2+nonnat3==1) 17 | 18 | * Average of VOP2002, and PreIraq [ROBUSTNESS CHECK] 19 | egen positive_B=rowmean(pos1 pos2) 20 | egen negative_B=rowmean(neg1 neg2) 21 | gen nonnat_B=(nonnat1+nonnat2==1) 22 | 23 | * PostIraq [ROBUSTNESS CHECK] 24 | gen positive_C=pos3 25 | gen negative_C=neg3 26 | gen nonnat_C=(nonnat3==1) 27 | 28 | * VOP2002 [ROBUSTNESS CHECK] 29 | gen positive_D=pos1 30 | gen negative_D=neg1 31 | gen nonnat_D=(nonnat1==1) 32 | 33 | gen x_A =(positive_A-negative_A)/100 34 | gen x_B =(positive_B-negative_B)/100 35 | gen x_C =(positive_C-negative_C)/100 36 | gen x_D =(positive_D-negative_D)/100 37 | 38 | * Define Globals 39 | #delimit; 40 | global model probit; 41 | global z1 afgh_dum icc s_lead nato 42 | aid_m aid_e lntrade lngdppc 43 | freedomhouse muslim europe; /* All variables */ 44 | global z2 afgh_dum icc s_lead 45 | aid_m aid_e lntrade lngdppc 46 | freedomhouse muslim; /* All variables - europe - nato */ 47 | global opt se coefastr 3aster nolab br bd(2); 48 | global vceoption robust; 49 | global x x_A; 50 | * global x x_B; 51 | * global x x_C; 52 | * global nonnat nonnat_A; /* Drop "*" if you want to add a non-national sample dummy */ 53 | * global nonnat nonnat_B; /* Drop "*" if you want to add a non-national sample dummy */ 54 | * global nonnat nonnat_C; /* Drop "*" if you want to add a non-national sample dummy */ 55 | global nonnat; /* Add "*" If you want to include a non-national sample dummy */ 56 | #delimit cr 57 | 58 | * Descriptive Analysis (Tables 1 and 2) 59 | sort $x country 60 | list country $x iraq_dum article98 unvoting if $x~=., sep(0) 61 | 62 | * Regression without instruments 63 | $model iraq_dum $x , vce($vceoption) 64 | outreg $x using table_$date.txt, $opt replace 65 | $model iraq_dum $x $z1 $nonnat, vce($vceoption) 66 | outreg $x $z1 $nonnat using table_$date.txt, $opt append 67 | $model article98 $x , vce($vceoption) 68 | outreg $x using table_$date.txt, $opt append 69 | $model article98 $x $z2 $nonnat, vce($vceoption) 70 | outreg $x $z2 $nonnat using table_$date.txt, $opt append 71 | reg unvoting $x , vce($vceoption) 72 | outreg $x using table_$date.txt, $opt append 73 | reg unvoting $x $z1 $nonnat, vce($vceoption) 74 | outreg $x $z1 $nonnat using table_$date.txt, $opt append 75 | 76 | * Descriptive Statistics 77 | sum $x $z1 if e(sample), separator(0) 78 | 79 | * Check whether regime-type interactions matter 80 | * gen x_free=$x*freedomhouse 81 | * $model iraq_dum $x x_free $z1 $nonnat, vce($vceoption) 82 | * $model article98 $x x_free $z2 $nonnat, vce($vceoption) 83 | * reg unvoting $x x_free $z1 $nonnat, vce($vceoption) 84 | cl 85 | * Make Graph for Interpretation of Marginal Effects 86 | save tempdata, replace 87 | do _interpretation 88 | 89 | * Multiple Imputation 90 | use tempdata, clear 91 | do _multiple.imputation.do 92 | 93 | * Instrumental Variables Regressions 94 | use tempdata, clear 95 | do _ivregression 96 | 97 | capture erase tempdata.dta 98 | capture log close 99 | 100 | -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/_regression_copy_309.do: -------------------------------------------------------------------------------- 1 | /* Regression Analysis */ 2 | 3 | clear 4 | set more off 5 | cd "C:\Users\quanli\Desktop\Dropbox\teaching\309spring2013\data\Goldsmith" 6 | global date 2011-07-26 7 | use data_$date 8 | 9 | * Make some new variables 10 | gen iraq_dum=(troops_iraq>0) 11 | gen afgh_dum=(troops_afgh>0) 12 | gen freedomhouse=(pr+cl) 13 | 14 | * Average of VOP2002, PreIraq, and PostIraq 15 | egen positive_A=rowmean(pos1 pos2 pos3) 16 | egen negative_A=rowmean(neg1 neg2 neg3) 17 | gen nonnat_A=(nonnat1+nonnat2+nonnat3==1) 18 | 19 | * Average of VOP2002, and PreIraq [ROBUSTNESS CHECK] 20 | egen positive_B=rowmean(pos1 pos2) 21 | egen negative_B=rowmean(neg1 neg2) 22 | gen nonnat_B=(nonnat1+nonnat2==1) 23 | 24 | * PostIraq [ROBUSTNESS CHECK] 25 | gen positive_C=pos3 26 | gen negative_C=neg3 27 | gen nonnat_C=(nonnat3==1) 28 | 29 | * VOP2002 [ROBUSTNESS CHECK] 30 | gen positive_D=pos1 31 | gen negative_D=neg1 32 | gen nonnat_D=(nonnat1==1) 33 | 34 | gen x_A =(positive_A-negative_A)/100 35 | gen x_B =(positive_B-negative_B)/100 36 | gen x_C =(positive_C-negative_C)/100 37 | gen x_D =(positive_D-negative_D)/100 38 | 39 | * Define Globals 40 | #delimit; 41 | global model probit; 42 | global z1 afgh_dum icc s_lead nato 43 | aid_m aid_e lntrade lngdppc 44 | freedomhouse muslim europe; /* All variables */ 45 | global z2 afgh_dum icc s_lead 46 | aid_m aid_e lntrade lngdppc 47 | freedomhouse muslim; /* All variables - europe - nato */ 48 | global opt se coefastr 3aster nolab br bd(2); 49 | global vceoption robust; 50 | global x x_A; 51 | * global x x_B; 52 | * global x x_C; 53 | * global nonnat nonnat_A; /* Drop "*" if you want to add a non-national sample dummy */ 54 | * global nonnat nonnat_B; /* Drop "*" if you want to add a non-national sample dummy */ 55 | * global nonnat nonnat_C; /* Drop "*" if you want to add a non-national sample dummy */ 56 | global nonnat; /* Add "*" If you want to include a non-national sample dummy */ 57 | #delimit cr 58 | 59 | * Descriptive Analysis (Tables 1 and 2) 60 | sort $x country 61 | list country $x iraq_dum article98 unvoting if $x~=., sep(0) 62 | 63 | * Regression without instruments 64 | $model iraq_dum $x , vce($vceoption) 65 | outreg $x using table_$date.txt, $opt replace 66 | $model iraq_dum $x $z1 $nonnat, vce($vceoption) 67 | outreg $x $z1 $nonnat using table_$date.txt, $opt append 68 | $model article98 $x , vce($vceoption) 69 | outreg $x using table_$date.txt, $opt append 70 | $model article98 $x $z2 $nonnat, vce($vceoption) 71 | outreg $x $z2 $nonnat using table_$date.txt, $opt append 72 | reg unvoting $x , vce($vceoption) 73 | outreg $x using table_$date.txt, $opt append 74 | reg unvoting $x $z1 $nonnat, vce($vceoption) 75 | outreg $x $z1 $nonnat using table_$date.txt, $opt append 76 | 77 | * Descriptive Statistics 78 | sum $x $z1 if e(sample), separator(0) 79 | 80 | * Check whether regime-type interactions matter 81 | * gen x_free=$x*freedomhouse 82 | * $model iraq_dum $x x_free $z1 $nonnat, vce($vceoption) 83 | * $model article98 $x x_free $z2 $nonnat, vce($vceoption) 84 | * reg unvoting $x x_free $z1 $nonnat, vce($vceoption) 85 | cl 86 | * Make Graph for Interpretation of Marginal Effects 87 | save tempdata, replace 88 | do _interpretation 89 | 90 | * Multiple Imputation 91 | use tempdata, clear 92 | do _multiple.imputation.do 93 | 94 | * Instrumental Variables Regressions 95 | use tempdata, clear 96 | do _ivregression 97 | 98 | capture erase tempdata.dta 99 | capture log close 100 | 101 | -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/data_2011-07-26.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/goldsmith-horiuchi-2012/data_2011-07-26.dta -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/goldsmith-horiuchi-reference.txt: -------------------------------------------------------------------------------- 1 | Goldsmith, Benjamin E. and Yusaku Horiuchi. 2012. 2 | "In Search of Soft Power Does Foreign Public Opinion Matter for US Foreign Policy?" 3 | World Politics 64(3): 555-85. 4 | 5 | doi: S0043887112000123 -------------------------------------------------------------------------------- /goldsmith-horiuchi-2012/smoking.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/goldsmith-horiuchi-2012/smoking.dta -------------------------------------------------------------------------------- /kono-2006/kono-2006-reference.txt: -------------------------------------------------------------------------------- 1 | Kono, Damiel Y. 2006. 2 | "Optimal Obfuscation: Democracy and Trade Policy Transparency" 3 | American Political Science Review 100(3): 369-84. -------------------------------------------------------------------------------- /kono-2006/manifesto data.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2006/manifesto data.dta -------------------------------------------------------------------------------- /kono-2006/national ntbs original.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2006/national ntbs original.dta -------------------------------------------------------------------------------- /kono-2006/national tariffs original.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2006/national tariffs original.dta -------------------------------------------------------------------------------- /kono-2006/regressions.do: -------------------------------------------------------------------------------- 1 | *BASELINE REGRESSIONS (Table 1) 2 | 3 | 4 | use "national tariffs original.dta", clear 5 | 6 | reg tariff polity lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt, robust 7 | 8 | reg tariff iec lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt, robust 9 | 10 | 11 | 12 | use "national ntbs original.dta", clear 13 | 14 | reg corecov polity lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 15 | 16 | reg corecov iec lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 17 | 18 | reg qualcov polity lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 19 | 20 | reg qualcov iec lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 21 | 22 | 23 | 24 | 25 | *CONSUMER PROXIES (Table 3) 26 | 27 | reg qualcov polity iso9000 lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 28 | 29 | reg qualcov iec iso9000 lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 30 | 31 | 32 | reg qualcov polity capgov lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 33 | 34 | reg qualcov iec capgov lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 35 | 36 | 37 | reg qualcov polity syswql lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 38 | 39 | reg qualcov iec syswql lngdppc lngdp lnexpgdp reer growth dimpgdp lngovcons gatt avgtar, robust 40 | 41 | 42 | 43 | 44 | *SECTORAL REGRESSIONS (Table 4) 45 | 46 | 47 | use "sectoral ntbs original.dta", clear 48 | 49 | gen lncorecov1=lncorecov 50 | 51 | replace lncorecov1=. if lncorecov==0 52 | 53 | gen lnqualcov1=lnqualcov 54 | 55 | replace lnqualcov1=. if lnqualcov==0 56 | 57 | 58 | intreg lncorecov1 lncorecov lnempshare lnimppen lnexpdep dlnimppen lngdp lngdppc lngovcons reer growth lntariff, cluster(isocode) 59 | 60 | intreg lnqualcov1 lnqualcov lnempshare lnimppen lnexpdep dlnimppen iso9000 lngdp lngdppc lngovcons reer growth lntariff, cluster(isocode) 61 | 62 | 63 | 64 | 65 | *PARTY MANIFESTO REGRESSIONS (Table 2) 66 | 67 | use "manifesto data.dta", clear 68 | 69 | quietly tab year, gen(yr) 70 | 71 | xtgls challenges ltariff, i(ccode) panels(hetero) corr(ar1) force 72 | 73 | reg challenges lchallenges ltariff, cluster(ccode) 74 | 75 | reg challenges lchallenges ltariff yr* 76 | 77 | reg challenges lchallenges ltariff if eu==0, cluster(ccode) 78 | 79 | reg challenges lchallenges ltariff if year>1989, cluster(ccode) 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /kono-2006/sectoral ntbs original.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2006/sectoral ntbs original.dta -------------------------------------------------------------------------------- /kono-2007/Data Appendix.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2007/Data Appendix.pdf -------------------------------------------------------------------------------- /kono-2007/MANIFEST.TXT: -------------------------------------------------------------------------------- 1 | Article.pdf (application/pdf) 148908 bytes. 2 | Data Appendix.pdf (application/pdf) 97862 bytes. 3 | Kono.zip (application/x-zip-compressed) 101042 bytes. 4 | Tradeblocsntbs.tab (text/tab-separated-values) 7103 bytes. 5 | Tradeblocstariffs.tab (text/tab-separated-values) 13629 bytes. 6 | Trade blocs regressions.do (application/octet-stream) 2650 bytes. 7 | -------------------------------------------------------------------------------- /kono-2007/Tradeblocsntbs.tab: -------------------------------------------------------------------------------- 1 | isocode year ntbcov lnntb l_lnntb dlnntb lngdppc wlrca wlxm lsitc3 wlrcac wlxmc lsitc3c tradeshare fsharec f_rca f_xm f_sitc 2 | ARG 1993 13.2629 2.58497 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 3 | ARG 2000 69.7781 4.24532 2.58497 1.66035 8.66143 0.9581 0.9312 0.6006 0.248697 0.277921 -0.154849 0 -18.9147 -4.70403 -5.25678 2.92891 4 | AUS 1993 11.0439 2.40188 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 5 | AUS 1999 35.4308 3.56758 2.40188 1.1657 9.83312 -0.308 -0.1202 0.2029 -1.0174 -0.773479 -0.552549 5.31274 -13.602 13.8387 10.5208 7.51574 6 | BGD 1994 35.1651 3.56005 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 7 | BGD 2000 21.4798 3.06711 3.56005 -0.492942 5.6282 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 8 | BOL 1995 16.6043 2.80966 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 9 | BOL 1999 20.5572 3.02321 2.80966 0.213549 6.72427 -0.0468 -0.5906 0.5479 -0.756203 -1.24388 -0.207549 9.08191 -9.83278 7.43558 12.2308 2.04078 10 | BRA 1993 35.5524 3.57101 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 11 | BRA 1999 60.4313 4.10151 3.57101 0.530498 8.31345 0.3693 -0.2668 0.5588 -0.340103 -0.920079 -0.196649 0 -18.9147 6.43294 17.403 3.71955 12 | CAN 1993 24.3646 3.19313 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 13 | CAN 2000 19.6823 2.97972 3.19313 -0.213409 9.85897 0.0133 0.0811 0.542 -0.696103 -0.572179 -0.213449 75.7035 56.7888 -39.5309 -32.4934 -12.1215 14 | CHE 1993 36.148 3.58762 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 15 | CHE 1996 20.3647 3.0138 3.58762 -0.573819 10.7354 0.9676 0.8053 0.8429 0.258197 0.152021 0.0874514 70.6991 51.7844 13.3706 7.87229 4.52862 16 | CHL 1991 48.5183 3.88194 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 17 | CHL 1999 37.4704 3.62355 3.88194 -0.25839 8.09639 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 18 | CHN 1993 53.9361 3.9878 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 19 | CHN 1997 47.69 3.86472 3.9878 -0.12308 5.85551 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 20 | DZA 1992 14.5855 2.68003 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 21 | DZA 1999 38.8305 3.65921 2.68003 0.979177 7.40724 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 22 | ECU 1995 20.6322 3.02685 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 23 | ECU 1999 47.6254 3.86337 3.02685 0.836514 7.29656 0.7764 0.6587 0.3516 0.0669972 0.0054206 -0.403849 9.29353 -9.62117 -0.644591 -0.0521522 3.88549 24 | EU 1993 29.4582 3.38297 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 25 | EU 1999 31.0704 3.43625 3.38297 0.0532815 9.98247 0.892 NA 0.763 0.182597 NA 0.0075514 0 -18.9147 -3.45377 NA -0.142833 26 | HUN 1993 83.9002 4.42963 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 27 | HUN 1999 16.0886 2.77811 4.42963 -1.65152 8.48827 0.8958 0.3806 1 0.186397 -0.272679 0.244551 81.1861 62.2714 11.6072 -16.9801 15.2286 28 | IDN 1994 14.1131 2.64711 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 29 | IDN 1999 15.7037 2.7539 2.64711 0.106792 6.65501 0.7042 0.4945 0.6438 -0.0052028 -0.158779 -0.111649 8.50576 -10.4089 0.0541559 1.65272 1.16214 30 | IND 1992 86.5352 4.46055 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 31 | IND 1997 52.6128 3.96296 4.46055 -0.497593 5.77765 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 32 | ISL 1993 7.58475 2.02614 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 33 | ISL 1996 9.0109 2.19844 2.02614 0.172295 10.1931 0.9772 0.9824 0.8019 0.267797 0.329121 0.0464514 74.6889 55.7742 14.9362 18.3564 2.59079 34 | JPN 1993 40.1741 3.69322 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 35 | JPN 1996 40.1551 3.69275 3.69322 -0.0004721 10.5955 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 36 | KOR 1992 2.24041 0.806661 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 37 | KOR 1996 2.74385 1.00936 0.806661 0.2027 8.98311 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 38 | MEX 1991 9.29322 2.22928 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 39 | MEX 1999 54.0234 3.98942 2.22928 1.76013 8.0669 -0.1255 0.3176 0.4885 -0.834903 -0.335679 -0.266949 78.7136 59.7989 -49.9263 -20.0733 -15.9632 40 | MYS 1991 16.0527 2.77588 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 41 | MYS 1996 16.091 2.77826 2.77588 0.0023813 8.04046 0.9418 0.8277 0.6997 0.232397 0.174421 -0.0557486 28.8688 9.95408 2.3133 1.7362 -0.554926 42 | NOR 1993 23.2256 3.14526 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 43 | NOR 1996 18.9675 2.94273 3.14526 -0.202529 10.2695 0.7828 0.8159 0.7548 0.0733972 0.162621 -0.0006486 77.3585 58.4438 4.28961 9.50417 -0.0379042 44 | NPL 1993 24.7339 3.20817 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 45 | NPL 1998 0.0667762 -2.70641 3.20817 -5.91458 5.23576 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 46 | NZL 1993 1.38611 0.326499 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 47 | NZL 1999 49.2831 3.89758 0.326499 3.57108 9.61806 0.2125 0.3166 0.5613 -0.496903 -0.336679 -0.194149 22.3734 3.45873 -1.71865 -1.16448 -0.671507 48 | OMN 1992 4.20626 1.43657 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 49 | OMN 1999 16.1739 2.7834 1.43657 1.34682 8.62717 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 50 | PHL 1994 7.35026 1.99474 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 51 | PHL 1998 5.13528 1.63613 1.99474 -0.358602 6.99473 0.1767 0.2563 0.4852 -0.532703 -0.396979 -0.270249 11.3394 -7.57533 4.0354 3.00725 2.04722 52 | POL 1991 1.00161 0.0016096 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 53 | POL 1999 23.4996 3.15698 0.0016096 3.15537 8.00316 0.477 0.0869 0.6328 -0.232403 -0.566379 -0.122649 74.2468 55.3321 -12.8593 -31.339 -6.78641 54 | PRY 1993 1.344 0.295652 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 55 | PRY 1999 38.4913 3.65043 0.295652 3.35478 7.5079 1 1 0.6567 0.290597 0.346721 -0.0987486 0 -18.9147 -5.49656 -6.55811 1.8678 56 | SAU 1994 8.99972 2.19719 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 57 | SAU 1999 17.6427 2.87032 2.19719 0.673127 8.86826 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 58 | TUN 1992 30.7486 3.42584 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 59 | TUN 1999 60.4665 4.10209 3.42584 0.676247 7.50836 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 60 | TUR 1994 5.09764 1.62878 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 61 | TUR 1997 23.5704 3.15999 1.62878 1.53121 7.85899 0.5357 0.3547 0.6511 -0.173703 -0.298579 -0.104349 0 -18.9147 3.28554 5.64754 1.97372 62 | TWN 1992 53.3189 3.97629 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 63 | TWN 1999 20.6566 3.02803 3.97629 -0.948257 NA 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 64 | URY 1995 29.9545 3.39968 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 65 | URY 1999 47.8431 3.86793 3.39968 0.468246 8.49091 0.9294 0.9124 0.6361 0.219997 0.259121 -0.119349 0 -18.9147 -4.16118 -4.90119 2.25744 66 | USA 1993 47.1777 3.85392 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 67 | USA 1999 49.6474 3.90495 3.85392 0.0510261 10.1712 0.6965 0.3703 0.5838 -0.0129029 -0.282979 -0.171649 27.9307 9.01601 -0.116332 -2.55134 -1.54758 68 | VEN 1992 13.1519 2.57657 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 69 | VEN 1999 33.3003 3.50556 2.57657 0.928998 8.11662 0.0031 0.5969 0.4353 -0.706303 -0.0563794 -0.320149 6.71151 -12.2032 8.61914 0.688008 3.90683 70 | ZAF 1991 80.9125 4.39337 NA NA NA NA NA NA NA NA NA NA NA NA NA NA 71 | ZAF 1999 12.1254 2.49531 4.39337 -1.89806 8.3218 1 1 1 0.290597 0.346721 0.244551 0 -18.9147 -5.49656 -6.55811 -4.62562 72 | 73 | -------------------------------------------------------------------------------- /kono-2007/Tradeblocstariffs.tab: -------------------------------------------------------------------------------- 1 | country isocode year smfn iwmfn pwmfn lnsmfn l_lnsmfn dlnsmfn lniwmfn l_lniwmfn dlniwmfn lnpwmfn l_lnpwmfn dlnpwmfn lngdppc wlrca wlxm lsitc3 wlrcac wlxmc lsitc3c tradeshare fsharec f_rca f_xm f_sitc growth dunemp dxr imf polity govcons cu eu checks2a checks3 polcon3 polcon5 xicrca 2 | argentina ARG 1992 13.4057 14.2197 10.1143 2.59568 NA NA 2.65463 NA NA 2.31396 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 3.13543 NA NA NA NA NA NA NA 3 | argentina ARG 1998 15.7179 15.9781 15.0359 2.7548 2.59568 0.159113 2.77122 2.65463 0.116592 2.71044 2.31396 0.396486 8.66143 0.9581 0.9312 0.6006 0.29403 0.366783 -0.100993 0 -22.6443 -6.6581 -8.30553 2.28692 0.0886897 6.9 0.031566 8 7 3.13543 1 0 2.85714 3.28571 0.451341 0.553038 1.19947 4 | australia AUS 1996 6.07 5.08 4.7 1.80336 2.65395 -0.850587 1.62531 2.61813 -0.992814 1.54756 2.50471 -0.957147 9.83312 -0.308 -0.1202 0.2029 -0.97207 -0.684617 -0.498693 5.31274 -17.3315 16.8475 11.8655 8.64313 0.400395 1.38 -0.0619875 0 10 18.8503 0 0 2 4.27273 0.511137 0.866959 1.48233 5 | australia AUS 1988 14.21 13.71 12.24 2.65395 NA NA 2.61813 NA NA 2.50471 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 18.8503 NA NA NA NA NA NA NA 6 | austria AUT 1988 10.9581 11.7382 11.235 2.39408 NA NA 2.46285 NA NA 2.41904 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 18.9482 NA NA NA NA NA NA NA 7 | austria AUT 1996 6.71077 6.00351 8.18339 1.90371 2.39408 -0.490363 1.79235 2.46285 -0.670507 2.10211 2.41904 -0.316928 10.222 0.8542 0.4497 0.7917 0.19013 -0.114717 0.0901067 0 -22.6443 -4.30536 2.59769 -2.0404 0.308877 1.73 0.0948773 0 10 18.9482 1 1 3 6 0.425844 0.737672 1.69534 8 | bolivia BOL 1993 9.52601 9.35477 9.51815 2.25403 NA NA 2.23589 NA NA 2.2532 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 11.7555 NA NA NA NA NA NA NA 9 | bolivia BOL 1998 9.83448 9.45384 9.97461 2.2859 2.25403 0.0318685 2.24642 2.23589 0.0105345 2.30004 2.2532 0.0468423 6.72427 -0.0468 -0.5906 0.5479 -0.71087 -1.15502 -0.153693 9.08191 -13.5624 9.64108 15.6648 2.08445 0.275373 -1.3 0.0587837 8 9 11.7555 0 0 4.42857 4.85714 0.298453 0.298453 1.70179 10 | brazil BRA 1990 39.2629 29.7823 32.4151 3.67028 NA NA 3.39391 NA NA 3.47863 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 19.2921 NA NA NA NA NA NA NA 11 | brazil BRA 1998 16.9057 17.6218 15.6711 2.82765 3.67028 -0.84263 2.86914 3.39391 -0.524778 2.75182 3.47863 -0.726808 8.31345 0.3693 -0.2668 0.5588 -0.29477 -0.831217 -0.142793 0 -22.6443 6.67486 18.8223 3.23345 0.562394 0.9 -0.298222 2 8 19.2921 1 0 4 4.42857 0.655031 0.849502 1.59935 12 | canada CAN 1988 9.08 6.86 9.19 2.20607 NA NA 1.92571 NA NA 2.21812 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 22.6804 NA NA NA NA NA NA NA 13 | canada CAN 1996 9.23 5.72 14.95 2.22246 2.20607 0.0163848 1.74397 1.92571 -0.181739 2.70471 2.21812 0.486595 9.85897 0.0133 0.0811 0.542 -0.65077 -0.483317 -0.159593 75.7035 53.0593 -34.5294 -25.6444 -8.4679 0.253614 1.9 -0.182189 0 10 22.6804 0 0 2 4 0.450108 0.858964 0.493043 14 | switzerland CHE 1988 4.36 4.25 3.66 1.47247 NA NA 1.44692 NA NA 1.29746 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 13.9261 NA NA NA NA NA NA NA 15 | switzerland CHE 1996 3.22 4.03 3.28 1.16938 1.47247 -0.303091 1.39377 1.44692 -0.0531526 1.18784 1.29746 -0.10962 10.7354 0.9676 0.8053 0.8429 0.30353 0.240883 0.141307 70.6991 48.0548 14.5861 11.5756 6.79046 0.142071 4 0.0725791 0 10 13.9261 0 0 5 6 0.625494 0.88194 1.55199 16 | chile CHL 1998 10.9774 10.9462 10.986 2.39583 2.39583 0 2.39299 2.39205 0.0009427 2.39662 2.39668 -5.63e-05 8.09639 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.478619 1.05 0.242554 0 8 9.7547 0 0 4 4 0.440905 0.740182 1.33407 17 | chile CHL 1991 10.9774 10.9359 10.9866 2.39583 NA NA 2.39205 NA NA 2.39668 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 9.7547 NA NA NA NA NA NA NA 18 | colombia COL 1991 6.95754 5.82826 8.63532 1.93983 NA NA 1.76272 NA NA 2.15586 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 9.39286 NA NA NA NA NA NA NA 19 | colombia COL 1998 12.8027 11.5086 13.9293 2.54966 1.93983 0.60983 2.44309 1.76272 0.680376 2.634 2.15586 0.478135 7.65879 0.8899 0.4411 0.5193 0.22583 -0.123317 -0.182293 12.4038 -10.2405 -2.31262 1.26283 1.86678 0.345305 5.45 0.572178 0 8.5 9.39286 0 0 2 2 0.444744 0.444744 1.16121 20 | czech republic CZE 1993 9.81325 10.8322 10.557 2.28373 NA NA 2.38252 NA NA 2.35679 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 22.916 NA NA NA NA NA NA NA 21 | czech republic CZE 1998 6.25937 5.71017 6.56488 1.83408 2.28373 -0.449654 1.74225 2.38252 -0.640275 1.88173 2.35679 -0.475052 8.56973 0.6231 0.3578 0.7177 -0.04097 -0.206617 0.0161067 80.8584 58.2141 -2.38503 -12.028 0.937635 0.118644 2.65 0.394642 2 10 22.916 0 0 4 5.57143 0.566203 0.761065 1.08776 22 | ecuador ECU 1998 12.6589 11.0804 12.2708 2.53836 2.30845 0.229907 2.40518 2.1485 0.256682 2.50722 2.27636 0.230864 7.29656 0.7764 0.6587 0.3516 0.11233 0.0942827 -0.349993 9.29353 -13.3508 -1.49969 -1.25875 4.67268 -0.601893 3.2 -0.0808546 3 9 8.60757 0 0 3 3.71429 0.0959456 0.685855 1.39997 23 | ecuador ECU 1993 10.0588 8.57197 9.74111 2.30845 NA NA 2.1485 NA NA 2.27636 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 8.60757 NA NA NA NA NA NA NA 24 | eu EU 1988 7.43 5.99 7.32 2.00553 NA NA 1.79009 NA NA 1.99061 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 19.7772 NA NA NA NA NA NA NA 25 | eu EU 1996 9.54 6.56 7.89 2.25549 2.00553 0.249968 1.88099 1.79009 0.0908992 2.0656 1.99061 0.0749857 9.98247 0.892 NA 0.763 0.22793 NA 0.0614067 0 -22.6443 -5.16131 NA -1.39051 0.270748 1.51 0.0812463 0 9.91667 19.7772 1 1 NA NA NA NA 1.39422 26 | finland FIN 1988 7.99539 6.40852 6.08317 2.07886 NA NA 1.85763 NA NA 1.80553 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 21.6458 NA NA NA NA NA NA NA 27 | finland FIN 1996 6.71077 5.81053 8.46393 1.90371 2.07886 -0.175151 1.75967 1.85763 -0.0979565 2.13581 1.80553 0.330288 10.1969 0.9453 0.8753 0.8129 0.28123 0.310883 0.111307 0 -22.6443 -6.36825 -7.03972 -2.52046 0.190184 11.79 -0.141052 0 10 21.6458 1 1 5.72727 5.54545 0.541619 0.774988 0.971598 28 | indonesia IDN 1993 20.3503 16.3041 20.5397 3.01309 NA NA 2.79142 NA NA 3.02236 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 8.84404 NA NA NA NA NA NA NA 29 | indonesia IDN 1998 16.3987 11.5072 14.0383 2.7972 3.01309 -0.215888 2.44297 2.79142 -0.34844 2.64179 3.02236 -0.380572 6.65501 0.7042 0.4945 0.6438 0.04013 -0.0699172 -0.0577933 8.50576 -14.1385 -0.567379 0.988527 0.817113 0.343479 12 -0.497334 2 -7 8.84404 0 0 1 1 0 0 1.3755 30 | india IND 1990 84.8727 74.0481 78.6231 4.44115 NA NA 4.30472 NA NA 4.36467 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 11.5962 NA NA NA NA NA NA NA 31 | india IND 1998 34.0575 28.7594 30.4814 3.52805 4.44115 -0.913101 3.35896 4.30472 -0.945753 3.41712 4.36467 -0.947547 5.77765 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.421321 -0.02 -0.258426 3 8.16667 11.5962 0 0 4.71429 7.28571 0.526036 0.623085 0.648587 32 | iceland ISL 1988 7.55 8.69 6.92 2.02155 NA NA 2.16217 NA NA 1.93442 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 19.8264 NA NA NA NA NA NA NA 33 | iceland ISL 1996 4.52 3.02 9.47 1.50851 2.02155 -0.513035 1.10526 2.16217 -1.05692 2.24813 1.93442 0.313713 10.1931 0.9772 0.9824 0.8019 0.31313 0.417983 0.100307 74.6889 52.0446 16.2967 21.7538 5.22043 0.283019 3.76 -0.113012 0 10 19.8264 0 0 2.36364 5.45455 0.520465 0.770757 1.60914 34 | japan JPN 1996 6.73 3.5 3.36 1.90657 1.93007 -0.0234959 1.25276 1.34286 -0.0901018 1.21194 1.39377 -0.181825 10.5955 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.414834 0.85 -0.0760331 0 10 13.3077 0 0 2.81818 3.81818 0.549049 0.758206 0.99279 35 | japan JPN 1988 6.89 3.83 4.03 1.93007 NA NA 1.34286 NA NA 1.39377 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 13.3077 NA NA NA NA NA NA NA 36 | south korea KOR 1991 14.1011 11.4411 13.1449 2.64625 NA NA 2.43721 NA NA 2.57603 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 10.4597 NA NA NA NA NA NA NA 37 | south korea KOR 1998 12.0004 10.5953 11.5331 2.48494 2.64625 -0.161312 2.36041 2.43721 -0.076798 2.44522 2.57603 -0.130813 8.98311 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.525424 4.54 -0.231525 2 6 10.4597 0 0 3 4 0.452545 0.662965 1.59402 38 | sri lanka LKA 1993 29.4471 33.3641 36.8425 3.3826 NA NA 3.50748 NA NA 3.60665 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 9.75937 NA NA NA NA NA NA NA 39 | sri lanka LKA 1998 23.1588 20.4432 28.0366 3.14237 3.3826 -0.240221 3.01765 3.50748 -0.489829 3.33351 3.60665 -0.273142 6.37808 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.256123 -4.1 0.043221 5 5 9.75937 0 0 3 3.42857 0.395307 0.452413 1.21684 40 | morocco MAR 1998 21.5402 18.6536 26.5448 3.06992 3.2288 -0.158879 2.92604 3.09133 -0.165285 3.27884 3.24632 0.032515 7.17811 1 1 1 0.33593 0.435583 0.298407 0 -22.6443 -7.60689 -9.86346 -6.7572 0.152125 -1.8 0.101835 2 -7.33333 15.4946 0 0 2 1 0.377122 0.519867 1.3348 41 | morocco MAR 1993 25.2493 22.0062 25.6956 3.2288 NA NA 3.09133 NA NA 3.24632 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 15.4946 NA NA NA NA NA NA NA 42 | mexico MEX 1988 10.6 10.47 10.97 2.36085 NA NA 2.34851 NA NA 2.39516 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 8.38401 NA NA NA NA NA NA NA 43 | mexico MEX 1996 13.94 14.07 17.96 2.63476 2.36085 0.273908 2.64405 2.34851 0.295531 2.88815 2.39516 0.492983 8.0669 -0.1255 0.3176 0.4885 -0.78957 -0.246817 -0.213093 78.7136 56.0693 -44.2706 -13.8389 -11.948 0.232837 1.2 0.0044028 4 1.33333 8.38401 0 0 2 2 0.303421 0.303421 0.247462 44 | malaysia MYS 1998 17.4601 8.09406 9.79587 2.85992 2.6029 0.257017 2.09113 2.43585 -0.344716 2.28196 2.63887 -0.356906 8.04046 0.9418 0.8277 0.6997 0.27773 0.263283 -0.0018933 28.8688 6.22448 1.72873 1.6388 -0.0117851 0.352347 0.3 -0.230754 0 3.83333 13.794 0 0 7 6 0.515428 0.640639 1.55313 45 | malaysia MYS 1993 13.5029 11.4255 13.9973 2.6029 NA NA 2.43585 NA NA 2.63887 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 13.794 NA NA NA NA NA NA NA 46 | norway NOR 1996 2.97368 2.65919 1.91358 1.0898 1.48197 -0.392167 0.978021 1.67837 -0.700349 0.648978 1.05766 -0.408684 10.2695 0.7828 0.8159 0.7548 0.11873 0.251483 0.0532067 77.3585 54.7142 6.49622 13.7597 2.91116 0.372531 1.7 -0.0464922 0 10 20.7691 0 0 2.18182 5.18182 0.511797 0.769023 2.47756 47 | norway NOR 1988 4.4016 5.35681 2.87963 1.48197 NA NA 1.67837 NA NA 1.05766 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 20.7691 NA NA NA NA NA NA NA 48 | new zealand NZL 1988 14.51 14.77 13.17 2.67484 NA NA 2.6926 NA NA 2.57794 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 17.012 NA NA NA NA NA NA NA 49 | new zealand NZL 1996 8.68 7.53 6.21 2.16102 2.67484 -0.513817 2.01889 2.6926 -0.673703 1.82616 2.57794 -0.751781 9.61806 0.2125 0.3166 0.5613 -0.45157 -0.247817 -0.140293 22.3734 -0.270864 0.122314 0.0671249 0.0380005 0.220903 0.53 0.0840899 0 10 17.012 0 0 1.81818 3 0.321159 0.730897 1.26118 50 | poland POL 1992 14.4678 12.0795 14.261 2.67193 NA NA 2.49151 NA NA 2.65753 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 19.2905 NA NA NA NA NA NA NA 51 | poland POL 1998 24.6863 14.6262 27.6807 3.20625 2.67193 0.534319 2.68282 2.49151 0.191308 3.32073 2.65753 0.663205 8.00316 0.477 0.0869 0.6328 -0.18707 -0.477517 -0.0687934 74.2468 51.6025 -9.65329 -24.6411 -3.54991 0.337329 -3.62 0.398418 3 7.66667 19.2905 0 0 4 4.14286 0.324813 0.720834 0.531085 52 | sweden SWE 1996 6.57762 4.91781 4.5783 1.88367 1.54878 0.334895 1.59286 1.52568 0.0671831 1.52133 1.18795 0.333378 10.2129 0.9251 0.7819 0.8234 0.26103 0.217483 0.121807 0 -22.6443 -5.91084 -4.92474 -2.75822 0.160819 6.34 -0.0205334 0 10 27.5208 1 1 2.36364 4.54545 0.496266 0.765917 2.07105 53 | sweden SWE 1988 4.70571 4.59827 3.28035 1.54878 NA NA 1.52568 NA NA 1.18795 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 27.5208 NA NA NA NA NA NA NA 54 | thailand THA 1993 44.1963 36.8509 42.0261 3.78864 NA NA 3.60688 NA NA 3.73829 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 9.40462 NA NA NA NA NA NA NA 55 | thailand THA 1998 23.1995 15.0673 23.8857 3.14413 3.78864 -0.644512 2.71253 3.60688 -0.89435 3.17328 3.73829 -0.565011 7.60021 0.8573 0.8001 0.7201 0.19323 0.235683 0.0185066 16.5776 -6.06674 -1.17228 -1.42983 -0.112275 0.0894905 1.9 -0.171996 2 9 9.40462 0 0 5.71429 5.28571 0.474287 0.65041 1.0414 56 | turkey TUR 1996 10.03 8.94 11.79 2.30558 3.82886 -1.52328 2.19054 3.70549 -1.51496 2.46725 3.86367 -1.39642 7.85899 0.5357 0.3547 0.6511 -0.12837 -0.209717 -0.0504934 0 -22.6443 2.90685 4.7489 1.14339 0.641739 -2.9 0.0904177 2 8.5 10.9624 1 1 1.85714 4 0.435384 0.622986 1.2492 57 | turkey TUR 1988 46.01 40.67 47.64 3.82886 NA NA 3.70549 NA NA 3.86367 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 10.9624 NA NA NA NA NA NA NA 58 | united states USA 1996 6.2 3.67 4.95 1.82455 1.82616 -0.0016116 1.30019 1.37877 -0.0785744 1.59939 1.53687 0.0625203 10.1712 0.6965 0.3703 0.5838 0.03243 -0.194117 -0.117793 27.9307 5.28642 0.171438 -1.02618 -0.622704 0.328917 -0.08 0 0 10 17.0202 0 0 4 4.81818 0.400338 0.852444 1.69307 59 | united states USA 1988 6.21 3.97 4.65 1.82616 NA NA 1.37877 NA NA 1.53687 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 17.0202 NA NA NA NA NA NA NA 60 | venezuela VEN 1992 19.8536 16.0911 16.7318 2.98839 NA NA 2.77826 NA NA 2.81731 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 8.42475 NA NA NA NA NA NA NA 61 | venezuela VEN 1998 12.9542 12.2648 12.8198 2.56142 2.98839 -0.426969 2.50674 2.77826 -0.271529 2.55099 2.81731 -0.266321 8.11662 0.0031 0.5969 0.4353 -0.66097 0.0324827 -0.266293 6.71151 -15.9328 10.5311 -0.51754 4.24279 -0.121828 3.7 0.752519 3 8.33333 8.42475 0 0 4 4.42857 0.392055 0.732041 0.981921 62 | 63 | -------------------------------------------------------------------------------- /kono-2007/kono-2007-reference.txt: -------------------------------------------------------------------------------- 1 | Kono, Daniel Y. 2007. 2 | "When Do Trade Blocs Block Trade?" 3 | International Studies Quarterly 51(1): 165-181. 4 | 5 | -------------------------------------------------------------------------------- /kono-2007/trade blocs ntbs.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2007/trade blocs ntbs.dta -------------------------------------------------------------------------------- /kono-2007/trade blocs regressions.do: -------------------------------------------------------------------------------- 1 | *MAIN TARIFF REGRESSIONS 2 | 3 | use "trade blocs tariffs.dta", clear 4 | 5 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac f_rca 6 | 7 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlxmc f_xm 8 | 9 | 10 | *ROBUST REGRESSIONS 11 | 12 | rreg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac f_rca 13 | 14 | rreg dlnsmfn l_lnsmfn lngdppc fsharec wlxmc f_xm 15 | 16 | 17 | *2SLS REGRESSIONS 18 | 19 | ivreg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac (f_rca=xicrca) 20 | 21 | ivreg dlnsmfn l_lnsmfn lngdppc fsharec wlxmc (f_xm=xicrca) 22 | 23 | 24 | *NTB REGRESSIONS 25 | 26 | use "trade blocs ntbs.dta", clear 27 | 28 | reg dlnntb l_lnntb lngdppc fsharec wlrcac f_rca, robust 29 | 30 | reg dlnntb l_lnntb lngdppc fsharec wlxmc f_xm, robust 31 | 32 | 33 | *ADDITIONAL ROBUSTNESS CHECKS 34 | 35 | use "trade blocs tariffs.dta", clear 36 | 37 | 38 | *ADDITION AND SUBTRACTION OF CONTROLS 39 | 40 | reg dlnsmfn fsharec wlrcac f_rca 41 | 42 | reg dlnsmfn l_lnsmfn fsharec wlrcac f_rca 43 | 44 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac f_rca 45 | 46 | reg dlnsmfn l_lnsmfn lngdppc growth fsharec wlrcac f_rca 47 | 48 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp fsharec wlrcac f_rca 49 | 50 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr fsharec wlrcac f_rca 51 | 52 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf fsharec wlrcac f_rca 53 | 54 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity fsharec wlrcac f_rca 55 | 56 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons fsharec wlrcac f_rca 57 | 58 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons cu fsharec wlrcac f_rca 59 | 60 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons eu fsharec wlrcac f_rca 61 | 62 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons cu checks2a fsharec wlrcac f_rca 63 | 64 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons cu checks3 fsharec wlrcac f_rca 65 | 66 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons cu polcon3 fsharec wlrcac f_rca 67 | 68 | reg dlnsmfn l_lnsmfn lngdppc growth dunemp dxr imf polity govcons cu polcon5 fsharec wlrcac f_rca 69 | 70 | 71 | *IMPORT-WEIGHTED AND OUTPUT-WEIGHTED MFN TARIFFS 72 | 73 | reg dlniwmfn l_lniwmfn lngdppc fsharec wlrcac f_rca 74 | 75 | reg dlniwmfn l_lniwmfn lngdppc fsharec wlxmc f_xm 76 | 77 | reg dlnpwmfn l_lnpwmfn lngdppc fsharec wlrcac f_rca 78 | 79 | reg dlnpwmfn l_lnpwmfn lngdppc fsharec wlxmc f_xm 80 | 81 | 82 | 83 | *3-DIGIT SITC CONVERGENCE MEASURE 84 | 85 | reg dlnsmfn l_lnsmfn lngdppc fsharec lsitc3c f_sitc 86 | 87 | 88 | *EXCLUDING CASES WITH HIGH DFBETAS 89 | 90 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac f_rca 91 | 92 | predict dfbrca, dfbeta(f_rca) 93 | 94 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlrcac f_rca if abs(dfbrca)<2/sqrt(30) 95 | 96 | 97 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlxmc f_xm 98 | 99 | predict dfbxm, dfbeta(f_xm) 100 | 101 | reg dlnsmfn l_lnsmfn lngdppc fsharec wlxmc f_xm if abs(dfbxm)<2/sqrt(30) 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /kono-2007/trade blocs tariffs.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/kono-2007/trade blocs tariffs.dta -------------------------------------------------------------------------------- /leblang-1996/leblang-reference.txt: -------------------------------------------------------------------------------- 1 | Leblang, David A. 1996. 2 | Property Rights, Democracy and Economic Growth. 3 | Political Research Quarterly 49(1) 5-26. -------------------------------------------------------------------------------- /leblang-1996/prq95.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/leblang-1996/prq95.dta -------------------------------------------------------------------------------- /potter-tavits-2015/Replication Code.R: -------------------------------------------------------------------------------- 1 | # Replication Code 2 | 3 | 4 | ########################## 5 | #### Campaign Finance Laws 6 | #### and Party Competition 7 | #### Joshua D. Potter and 8 | #### Margit Tavits 9 | #### April 2013 10 | ########################## 11 | 12 | 13 | ########################## 14 | #### Codebook 15 | ########################## 16 | 17 | # cnty \ country name 18 | # year \ year of current election 19 | # rulelaw \ from World Bank 20 | # polity \ Polity IV score 21 | # thresh \ legal vote threshold 22 | # postenp \ ENP after current election 23 | # preenp \ ENP prior to current election 24 | # fundparity4 \ Metric presented in paper 25 | # fundparity 3 \ Alternate drops direct funding 26 | # directelig \ Direct funding eligibility 27 | # demin \ Year first democratic 28 | # demyear \ Number of democratic years 29 | # fed \ Whether or not federal 30 | # pres \ Whether or not presidential 31 | # avemag \ Average district magnitude 32 | # smd \ Whether or not SMD system 33 | # fract \ Ethnolinguistic fractionalization 34 | # donorlimit \ Whether limits on donations 35 | # eligmedia \ Free media eligibility 36 | # partyspend \ Whether limits on spending 37 | 38 | 39 | ########################## 40 | #### Replication Code 41 | ########################## 42 | 43 | # Set working directory 44 | 45 | # read in data 46 | library(foreign) 47 | raw.data<-read.dta("potter_tavits_data.dta") 48 | 49 | # drop outliers 50 | campaigns <- subset(raw.data, postenp < 9.2) 51 | 52 | 53 | # create post-1974 subset for endogeneity test 54 | later1974<-subset(campaigns, demin>1973) 55 | 56 | # estimate Model 1 in Table 2 57 | library(arm) 58 | full<-lm(postenp ~ fundparity4 59 | + demyears 60 | + fed 61 | + pres 62 | + log(avemag) 63 | + fract 64 | + log(avemag):fract, 65 | data=campaigns) 66 | display(full) 67 | 68 | # estimate Model 2 in Table 2 69 | post1974<-lm(postenp ~ fundparity4 70 | + demyears 71 | + fed 72 | + pres 73 | + log(avemag) 74 | + fract 75 | + log(avemag):fract, 76 | data=later1974) 77 | display(post1974) 78 | 79 | # Use texreg to place their table in the paper 80 | library(texreg) 81 | rep.list <- list(full, post1974) 82 | 83 | texreg(rep.list) 84 | 85 | # construct the endogeneity plot in Figure 1 86 | plot(campaigns$fundparity4 87 | ~ campaigns$preenp, 88 | pch=20, col="grey20", cex=1.5, 89 | xlab="Previous ENP", 90 | ylab="Current Fund Parity Value") 91 | display(lm(fundparity4 ~ preenp, data=campaigns)) 92 | abline(a=0.82, b=-0.04, lwd=2) 93 | 94 | # model to ensure that all fund parity metric components are exerting similarly-signed influences (this model is mentioned in footnote 44) 95 | components<-lm(postenp ~ directelig 96 | + partyspend 97 | + donorlimit 98 | + eligmedia 99 | + demyears 100 | + fed 101 | + pres 102 | + log(avemag) 103 | + fract 104 | + log(avemag):fract, 105 | data=campaigns) 106 | display(components) 107 | 108 | # model to ensure that differences between legal rules and actual empirical practice in a country are not driving our results (this model is mentioned in footnote 45) 109 | rules.practice<-lm(postenp ~ fundparity4 110 | + rulelaw 111 | + fundparity4*rulelaw 112 | + demyears 113 | + fed 114 | + pres 115 | + log(avemag) 116 | + fract 117 | + log(avemag):fract, 118 | data=campaigns) 119 | display(rules.practice) 120 | 121 | # model to ensure that including legal threshold (which eliminates a large number of our observations due to data availability) does not undercut our results (this model is mentioned in footnote 56) 122 | threshold<-lm(postenp ~ fundparity4 123 | + thresh 124 | + demyears 125 | + fed 126 | + pres 127 | + log(avemag) 128 | + fract 129 | + log(avemag):fract, 130 | data=campaigns) 131 | display(threshold) 132 | -------------------------------------------------------------------------------- /potter-tavits-2015/potter-tavits-reference.txt: -------------------------------------------------------------------------------- 1 | Potter, Joshua D. and Margit Tavits. 2013. 2 | "The Impact of Campaign Finance Laws on Party Competition" 3 | British Journal of Political Science 45(1): 73-95. 4 | 5 | doi:10.1017/S0007123413000227 -------------------------------------------------------------------------------- /potter-tavits-2015/potter_tavits_data.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/potter-tavits-2015/potter_tavits_data.dta -------------------------------------------------------------------------------- /reuveny-li-2003/replicate.do: -------------------------------------------------------------------------------- 1 | clear 2 | capture log close 3 | 4 | #delimit ; 5 | set more off; 6 | set mem 40m; 7 | 8 | use "D:\Inequality\replicate\replicate.dta", clear; 9 | des; 10 | sort cow year; 11 | tsset cow year, yearly; 12 | iis cow; 13 | tis year; 14 | 15 | 16 | **Table 1 Results**; 17 | regress gg lgg dmdem dmtrade dmportf dmfdiin dmgdppc sqgdppc , robust cluster(cow); 18 | 19 | regress gg lgg dmdem dmtrade dmportf dmfdiin dmgdppc sqgdppc if oecd==0, robust cluster(cow); 20 | 21 | regress gg lgg dmdem dmtrade dmportf dmfdiin dmgdppc sqgdppc if oecd==1, robust cluster(cow); 22 | 23 | regress gg lgg dmdem dmtrade dmportf dmfdiin dmgdppc sqgdppc if year==1912, robust ; 24 | -------------------------------------------------------------------------------- /reuveny-li-2003/replicate.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/reuveny-li-2003/replicate.dta -------------------------------------------------------------------------------- /reuveny-li-2003/reuvney-li-reference.txt: -------------------------------------------------------------------------------- 1 | Reuveny, Rafael and Quan Li. 2003. 2 | Economic Openness, Democracy and Income Inequality: An Empirical Analysis. 3 | Comparative Political Studies 36(5): 575-601. 4 | 5 | DOI: 10.1177/0010414003251882 -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/.Renviron: -------------------------------------------------------------------------------- 1 | 2 | fixest_version = "0.10.0" 3 | fixest_startup_msg = TRUE 4 | -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/.Rhistory: -------------------------------------------------------------------------------- 1 | library(here) 2 | library(tidyverse) 3 | library(fixest) 4 | setwd(here()) 5 | getwd() 6 | PCPG <- haven::read_dta("formatteddata.dta") 7 | here() 8 | ?here() 9 | setwd(here("/besley-etal-2010")) 10 | here("besley-etal-2010") 11 | setwd(here("besley-etal-2010")) 12 | getwd() 13 | PCPG <- haven::read_dta("formatteddata.dta") 14 | View(PCPG) 15 | library(here) 16 | setwd(here("simple-panel-models/besley-etal-2010")) 17 | getwd() 18 | PCPG <- haven::read_dta("formatteddata.dta") 19 | # Model 1, Table 2 20 | summary(feols(share_taxes_inc ~ compnorm, fixef = c("state", "year"), data = PCPG)) 21 | library(tidyverse) 22 | library(fixest) 23 | # Model 1, Table 2 24 | summary(feols(share_taxes_inc ~ compnorm, fixef = c("state", "year"), data = PCPG)) 25 | # Model 3, Table 2 26 | summary(feols(share_taxes_inc ~ factor(state) + factor(year) | compnorm ~ LT, data = PCPG)) 27 | # Model 4, Table 2 28 | summary(feols(share_cap_exp ~ compnorm, fixef = c("state", "year"), data = PCPG)) 29 | # purportedly Model 8 of Table 2. I think it's actually Model 7 30 | summary(feols(rtw ~ compnorm, fixef = c("state", "year"), data = PCPG)) 31 | -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/40836649.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/simple-panel-models/besley-etal-2010/40836649.pdf -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/besley-etal-reference.txt: -------------------------------------------------------------------------------- 1 | Besley, Timothy, Torsten Persson and Daniel M. Sturm. 2010. 2 | "Political Competition, Policy and Growth: Theory and Evidence from the US" 3 | The Review of Economic Studies 77(4):1329–1352 4 | 5 | Link: https://doi.org/10.1111/j.1467-937X.2010.00606.x -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/besley-etal-rep.R: -------------------------------------------------------------------------------- 1 | # compliled by Steven Miller 2 | 3 | library(here) 4 | library(tidyverse) 5 | library(fixest) 6 | 7 | setwd(here("simple-panel-models/besley-etal-2010")) 8 | getwd() 9 | 10 | PCPG <- haven::read_dta("formatteddata.dta") 11 | 12 | # Model 1, Table 2 13 | summary(feols(share_taxes_inc ~ compnorm, fixef = c("state", "year"), data = PCPG)) 14 | # Model 4, Table 2 15 | summary(feols(share_cap_exp ~ compnorm, fixef = c("state", "year"), data = PCPG)) 16 | # Model 7, Table 2 17 | summary(feols(rtw ~ compnorm, fixef = c("state", "year"), data = PCPG)) 18 | -------------------------------------------------------------------------------- /simple-panel-models/besley-etal-2010/formatteddata.dta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshuaalley/cross-sectional-ols/f2c51bf760ea598b834b34ebacbc8bfaee747fbe/simple-panel-models/besley-etal-2010/formatteddata.dta --------------------------------------------------------------------------------