Hostname: page-component-6766d58669-88psn Total loading time: 0 Render date: 2026-05-21T18:50:49.792Z Has data issue: false hasContentIssue false

Navigating Potential Pitfalls in Difference-in-Differences Designs: Reconciling Conflicting Findings on Mass Shootings’ Effect on Electoral Outcomes

Published online by Cambridge University Press:  12 April 2024

HANS J. G. HASSELL*
Affiliation:
Florida State University, United States
JOHN B. HOLBEIN*
Affiliation:
University of Virginia, United States
*
Hans J. G. Hassell, Professor, Department of Political Science, Florida State University, United States, hans.hassell@fsu.edu.
Corresponding author: John B. Holbein, Associate Professor of Public Policy, Politics, and Education, Frank Batten School of Leadership and Public Policy, University of Virginia, United States, holbein@virginia.edu.
Rights & Permissions [Opens in a new window]

Abstract

Work on the electoral effects of gun violence in the U.S. relying on difference-in-differences designs has produced findings ranging from null to substantively large effects. However, as difference-in-difference designs, on which this research relies, have exploded in popularity, scholars have documented several methodological issues including potential violations of parallel-trends and unaccounted for treatment effect heterogeneity. These pitfalls (and their solutions) have not been fully explored in political science. We apply these advancements to the unresolved debate on gun violence’s effects on U.S. electoral outcomes. We show that studies finding a large positive effect of gun violence on Democratic vote shares are a product of a failure to properly specify difference-in-differences models when underlying assumptions are unlikely to hold. Once these biases are corrected, shootings show little evidence of sparking large electoral change. Our work clarifies an unresolved debate and provides a cautionary guide for scholars currently employing difference-in-differences designs.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press on behalf of American Political Science Association
Figure 0

Figure 1. Differences in Previous Studies’ Estimated Effect of Mass Shootings on Election Outcomes Are Not Driven by Data ChoicesNote: Estimates include county and year fixed effects (i.e., the TWFE estimator) with standard errors clustered at the county level and no covariates. The top panel shows effect estimates coding only the election immediately after a shooting occurs as having been treated; the bottom panel considers all post-shooting elections in counties with a shooting as treated. Coefficients, standard errors, and p-values are labeled for each coefficient. Takeaway: Naive TWFE estimators suggest mass shootings—regardless of the data/coding used—increase Democratic vote share in the county where shootings happens by 2.6–8.7 percentage points.

Figure 1

Figure 2. Trends in Presidential Vote in Counties with Mass Shootings Prior to Shootings, Compared to Trends in Counties without ShootingsNote: Pretreatment trends of Democratic vote share in counties where a shooting occurred (left panel) benchmarked to the trends in Democratic vote share found in counties where a shooting did not occur (right panel). Lighter lines show the patterns of individual counties; darker lines show the overall pattern for all counties. Takeaway: Counties that have shootings trended more Democratic even before the shootings occurred, whereas counties without a shooting trended slightly more Republican. Models that do not account for differential trends across counties will be biased.

Figure 2

Figure 3. The Effect of Shootings on Election Outcomes Many Years BeforeNote: Effect of mass shootings on Democratic vote share in the years prior to when a shooting occurred. Treatment #1 is coded such that only elections with shooting are coded as treated; Treatment #2 is coded such that all elections after a shooting occurs in a county are coded as treated. All models’ standard errors are clustered at the county level. Takeaway: TWFE estimators without time-trends indicate shootings may have an effect up to and including 20 years prior to when a shooting occurred.

Figure 3

Figure 4. Event-Study Estimates Show that TWFE Fails to Account for Pretreatment TrendsNote: Event-study estimates with county and year fixed effects (GMAL’s data). Baseline election year is shown with a gray dotted line. Following prior work, we bin our extreme points (Baker, Larcker, and Wang 2022; Schmidheiny and Siegloch 2019). Takeaway: Counties that have shootings trended more Democratic even before the shootings occurred. The increase that occurs after a shooting is entirely consistent with a general trend toward more Democratic election outcomes. Models that do not account for differential trends across counties will be biased.

Figure 4

Figure 5. Effects of Mass Shootings on Elections after Absorbing County-Specific TrendsNote: Effect of mass shootings of various types once we account for differential trends. Within each panel, the first three estimates are using the GMAL coding of mass shootings and their data, the next comes from HHB, and the last comes from Yousaf. For cubic and quartic specifications, see Supplementary Figure S9. For effects where we code all post-shooting counties as being treated—not just counties and years with shootings—see Supplementary Figure S14. Takeaway: Once we account for differential trends across counties, the effects of mass shootings are all smaller and precisely estimated.

Figure 5

Figure 6. Event-Study Estimates of Shootings after Absorbing County-Specific TrendsNote: Event-study estimates from the HHB and GMAL data with county and year fixed effects and county-specific quadratic time trends. These use the method developed by Freyaldenhoven et al. (2021) to account for pre-trends in event-study designs. Analysis executed using the xtevent and xteventplot commands in STATA (Freyaldenhoven et al. 2022). These commands, as a default, plot both the standard confidence intervals and those developed by Olea, Luis, and Plagborg-Møller (2019), which were developed for contexts with dynamic effects. The figure uses the same y-axis as Figure 4 for ease in comparing across the two. Takeaway: Once time trends are taken into account, the effect of shootings attenuates considerably.

Figure 6

Figure 7. Liu, Wang, and Xu (2024) Interactive Fixed Effects Counterfactual EstimatorNote: The interactive fixed effects counterfactual estimator developed by Liu, Wang, and Xu (2024) using GMAL’s data. Panel a shows the TWFE estimated by Liu, Wang, and Xu’s (2024) FECT package; it is analogous to Figure 5, but their procedure estimates slight differences—for example, in the number of pre- and posttreatment periods. In panel b, the number of factors (r) is set to 3—that chosen by cross-validation and the degree of the polynomial is set to 4. In the bottom row, r is set to 1 in both panels and degree 2 in panel c and 4 in panel d. For other variations, see the Supplementary Material. Takeaway: The upward trend in the TWFE model (i.e., panel a) is indicative of violation of the parallel trends assumption. In the interactive fixed effects models, there is no evidence of the substantial effects shown in more simplistic model specifications that do not account for potential violations of the parallel trends assumption.

Figure 7

Figure 8. Implementing Rambachan and Roth’s Sensitivity Analysis in the Shooting ExampleNote: Results from the sensitivity analysis suggested by Rambachan and Roth (2021) using GMAL’s data—that is, testing for effect sensitivity across $ {\triangle}^{SD}(M) $. The models incorporate information from three elections prior to treatment and five post-treatment periods. Takeaway: The results show the effects of shootings on vote shares are highly sensitive and do not hold with even minor deviations from parallel trends.

Figure 8

Figure 9. Illustration of the Goodman–Bacon Decomposition of the TWFE ModelsNote: This figure shows the results from the Bacon decomposition for the TWFE models. The figure also shows all of the possible $ 2\times 2 $ difference-in-differences (DiD) estimate, with their weights for the ATE on the x-axis and the effect size on the y-axis. The horizontal line shows the overall DiD estimate.

Figure 9

Figure 10. Sun and Abraham (2021) Approach for Estimating Dynamic Treatment Effects in Event Studies with Heterogeneous Treatment EffectsNote: Results from the clean comparisons suggested by Sun and Abraham (2021) using the GMAL and HHB data. Models include quadratic county-specific time trends to address potential violations of the parallel trends assumption in the TWFE. Takeaway: Clean comparison effects with trends show no sign of a sizable and durable effect on Democratic vote shares shown in the TWFE nor in the simple event-study plot (see Figure 5).

Figure 10

Figure 11. Distribution of All Effect Estimates and P-Values for Models with County TrendsNote: Distribution of all model estimates with trends in Figure 5 in the first row and then for all the event-study estimates in the article on the bottom row. The event-study coefficients are shown for periods 0–4 post-treatment. The left panel in each row shows coefficients (in percentage point units). The right panel in each row shows the distribution of p-values across model specifications. Takeaway: Once we account for potential violations of parallel trends, the effects of shootings spike around zero, are only rarely significant, are not robust to slight changes in model specification, and are sometimes positive and sometimes negative.

Supplementary material: File

Hassell and Holbein supplementary material

Hassell and Holbein supplementary material
Download Hassell and Holbein supplementary material(File)
File 2.1 MB
Submit a response

Comments

No Comments have been published for this article.