Author
Listed:
- Soo Jeong Lee
(Southern Illinois University Carbondale)
- Elizabeth Kayoon Hur
(Michigan State University)
- Jeffrey M. Wooldridge
(Michigan State University)
Abstract
We introduce lwdid, a Stata command that implements the rolling difference-in-differences (DID) estimator proposed by Lee and Wooldridge (2025). The rolling approach transforms the panel-data DID problem into a sequence of cross-sectional treatment-effect estimation problems, allowing flexible estimation of treatment effects in settings with staggered adoption and treatment-effect heterogeneity. The command is further designed to accommodate both large and small panels. In particular, it also implements the extension developed in Lee and Wooldridge (2026) for small-panel settings, where the number of cross-sectional units is limited and conventional large-sample asymptotic inference may be unreliable. For large panels, a key feature of lwdid is that it provides computationally efficient inference using a multiplier bootstrap based on exact influence functions of the estimators. Because this approach avoids repeated model estimation, it substantially reduces computational cost. For settings with a small number of units, lwdid also provides valid inference procedures. Under normality, exact inference can be conducted using the t distribution, while HC3-based inference and randomization inference are provided as alternatives that require weaker assumptions. Overall, lwdid provides applied researchers with a practical and efficient tool for estimating treatment effects within the rolling DID framework.
Suggested Citation
Handle:
RePEc:boc:usug26:04
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:usug26:04. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.