Preventive War and Sovereign Debt
by Colin Krainin, Kristopher W. Ramsay, Bella Wang, and Joseph J. Ruggiero
Place all files in the same working directory.
All packages are available through CRAN with install.packages.
The following is a list of all R packages used in the making of this paper. Not all of them are required for the main replication.
DAMiscdplyrextrafontforeignggplot2ggrepelgridExtraknitrlatex2expmfxstargazertexregtidyrtidyverseZelig
The following files contain all of the data used in the analysis.
-
preventive cases.dtaThis file was provided directly by Douglas Lemke in December 2020 and contains data used for analysis in the following paper.
Lemke, Douglas. 2003. "Investigating the preventive motive for war." International Interactions 29 (4): 273-292.
It contains data from the Correlates of War project's COW dataset, as well as the preventive motive estimates from Lemke's paper.
-
BellJohnsonISQrepDDyadic.dtaThis file is omitted here due to size and can be retrieved from Harvard Dataverse. It contains data used for analysis in the following paper.
Bell, Sam R. and Jesse C. Johnson. 2015. "Shifting Power, Commitment Problems, and Preventive War." International Studies Quarterly 59 (1): 133-144.
-
LTCYUK.csvThis file contains data on the Consol yields in the United Kingdom (1753-2016). The data was collected by the Bank of England's Three Centuries of Macroeconomic Data project and this file was retrieved from the St. Louis Fed's Federal Reserve Economic Database (FRED) in December 2020.
-
a-millennium-of-macroeconomic-data-for-the-uk.csvThis dataset contains a broad set of macroeconomic and financial data for the United Kingdom provided by the Bank of England. This file was retrieved from the Bank of England research datasets in early 2021.
-
wardebt.csvThis file contains the merged data that was used to run the regressions in the analysis. Note that
wardebt-names.csvis the same file with several war names included for the figures.
To replicate our results, load the packages and create a dataframe from wardebt.csv.
Alternatively, you can use the raw files and merge the relevant information.
-
wardebt-regs.RThis file contains the code that was used to run the regressions presented in the main text.
This includes six models of logistic regressions on war using the preventive motive estimates from Lemke (2003) and presented in Table 2 of the main text, as well as two models of logistic regressions on war using the preventive motive estimate from Bell and Johnson (2015) and presented in Table 3 of the main text.
It also calculates average marginal effects on the same tables. Click here for documentation about the
logitmfxfunction.It also calculates the interaction effects for the first model run, which are plotted in the main text. Click here for documentation about the
intEfffunction. See the following paper for more information about interaction effects and their differences from marginal effects.Ai, Chunrong and Edward C. Norton. 2003. "Interaction terms in logit and probit models." Economic Letters 80 (1): 123-129.
-
wardebt-supp.RThis file contains the code that was used to run the supplementary regressions presented outside of the main text. This includes but is not limited to replications of relevant regressions from the following two papers.
Lemke, Douglas. 2003. "Investigating the preventive motive for war." International Interactions 29 (4): 273-292.
Bell, Sam R. and Jesse C. Johnson. 2015. "Shifting Power, Commitment Problems, and Preventive War." International Studies Quarterly 59 (1): 133-144.
-
logitmfxRE.R,logitmfxestRE.R, andsecalc.RThese files contain necessary functions for executing the replication code.
The results for normal logistic and linear regressions were displayed using stargazer and the results for rare events logits were displayed using texreg.
-
figs.Randplot.RThese files contains code to recreate the figures presented in the main text.