Improved Inference for CSDID Using the Cluster Jackknife
Sunny R. Karim, Morten Ørregaard Nielsen, James G. MacKinnon, Matthew D. Webb
TL;DR
This paper addresses unreliable cluster-robust inference for modern difference-in-differences, focusing on the CSDID estimator under staggered adoption. It introduces cluster jackknife CV$_3$ standard errors as a practical and robust alternative to RIF-based and multiplier bootstrap approaches, demonstrating via Monte Carlo simulations and empirical examples that it markedly improves finite-sample inference when cluster counts are small or treated clusters are few. The authors provide open-source implementations in Stata (csdidjack) and R (didjack) to facilitate adoption. Overall, the work offers a concrete fix to inferential shortcomings in modern DiD methods, with clear guidance on when and how to use cluster jackknife in applied settings.
Abstract
Obtaining reliable inferences with traditional difference-in-differences (DiD) methods can be difficult. Problems can arise when both outcomes and errors are serially correlated, when there are few clusters or few treated clusters, when cluster sizes vary greatly, and in various other cases. In recent years, recognition of the ``staggered adoption'' problem has shifted the focus away from inference towards consistent estimation of treatment effects. One of the most popular new estimators is the CSDID procedure of Callaway and Sant'Anna (2021). We find that the issues of over-rejection with few clusters and/or few treated clusters are at least as severe for CSDID as for traditional DiD methods. We also propose using a cluster jackknife for inference with CSDID, which simulations suggest greatly improves inference. We provide software packages in Stata csdidjack and R didjack to calculate cluster-jackknife standard errors easily.
