IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2109.05913.html
   My bibliography  Save this paper

{did2s}: Two-Stage Difference-in-Differences

Author

Listed:
  • Kyle Butts
  • John Gardner

Abstract

Recent work has highlighted the difficulties of estimating difference-in-differences models when treatment timing occurs at different times for different units. This article introduces the R package did2s which implements the estimator introduced in Gardner (2021). The article provides an approachable review of the underlying econometric theory and introduces the syntax for the function did2s. Further, the package introduces a function, event_study, that provides a common syntax for all the modern event-study estimators and plot_event_study to plot the results of each estimator.

Suggested Citation

  • Kyle Butts & John Gardner, 2021. "{did2s}: Two-Stage Difference-in-Differences," Papers 2109.05913, arXiv.org, revised May 2022.
  • Handle: RePEc:arx:papers:2109.05913
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2109.05913
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Callaway, Brantly & Sant’Anna, Pedro H.C., 2021. "Difference-in-Differences with multiple time periods," Journal of Econometrics, Elsevier, vol. 225(2), pages 200-230.
    2. Laurent Bergé, 2018. "Efficient estimation of maximum likelihood models with multiple fixed-effects: the R package FENmlm," DEM Discussion Paper Series 18-13, Department of Economics at the University of Luxembourg.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Brantly Callaway, 2022. "Difference-in-Differences for Policy Evaluation," Papers 2203.15646, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hofmann, Sarah, 2023. "Disease perception and preventive behavior: The vaccination response to local measles outbreaks," Social Science & Medicine, Elsevier, vol. 331(C).
    2. Bas Scheer & Wiljan van den Berge & Maarten Goos & Alan Manning & Anna Salomons, 2022. "Alternative Work Arrangements and Worker Outcomes: Evidence from Payrolling," CPB Discussion Paper 435, CPB Netherlands Bureau for Economic Policy Analysis.
    3. Mac Clay, Pablo & Börner, Jan & Sellare, Jorge, 2023. "Institutional and macroeconomic stability mediate the effect of auctions on renewable energy capacity," Energy Policy, Elsevier, vol. 180(C).
    4. Alex Hollingsworth & Krzysztof Karbownik & Melissa A. Thomasson & Anthony Wray, 2022. "The Gift of a Lifetime: The Hospital, Modern Medicine, and Mortality," NBER Working Papers 30663, National Bureau of Economic Research, Inc.
    5. Catalina Amuedo‐Dorantes & Francisca M. Antman, 2022. "De facto immigration enforcement, ICE raid awareness, and worker engagement," Economic Inquiry, Western Economic Association International, vol. 60(1), pages 373-391, January.
    6. Anderson, D. Mark & Liang, Yang & Sabia, Joseph J., 2022. "Mandatory Seatbelt Laws and Traffic Fatalities: A Reassessment," IZA Discussion Papers 15843, Institute of Labor Economics (IZA).
    7. Sant’Anna, Pedro H.C. & Zhao, Jun, 2020. "Doubly robust difference-in-differences estimators," Journal of Econometrics, Elsevier, vol. 219(1), pages 101-122.
    8. Xiaozhou Ding & Christopher Bollinger & Michael Clark & William H. Hoyt, 2022. "Too Late to Buy a Home? School Redistricting and the Timing and Extent of Capitalization," CESifo Working Paper Series 9647, CESifo.
    9. Stefan Bauernschuster & Michael Grimm & Cathy M. Hajo, 2023. "The Impact of Margaret Sanger’s Birth Control Clinics on Early 20th Century U.S. Fertility and Mortality," CESifo Working Paper Series 10421, CESifo.
    10. Fabio Bothner & Annette Elisabeth Töller & Paul Philipp Schnase, 2022. "Do Lawsuits by ENGOs Improve Environmental Quality? Results from the Field of Air Pollution Policy in Germany," Sustainability, MDPI, vol. 14(11), pages 1-18, May.
    11. Elad DeMalach & Analia Schlosser, 2024. "Short- and Long-Term Effects of Universal Preschool: Evidence from the Arab Population in Israel," CESifo Working Paper Series 10904, CESifo.
    12. Carlos Díaz & Sebastian Fossati & Nicolás Trajtenberg, 2022. "Stay at home if you can: COVID‐19 stay‐at‐home guidelines and local crime," Journal of Empirical Legal Studies, John Wiley & Sons, vol. 19(4), pages 1067-1113, December.
    13. Motyakina, Yana, 2023. "Территории Опережающего Развития И Занятость В Моногородах Российской Федерации [Priority development areas and employment in Russian cities]," MPRA Paper 117635, University Library of Munich, Germany.
    14. Caragliu, Andrea & Graziano, Marcello, 2022. "The spatial dimension of energy transition policies, practices and technologies," Energy Policy, Elsevier, vol. 168(C).
    15. Luis Alvarez & Bruno Ferman, 2020. "Inference in Difference-in-Differences with Few Treated Units and Spatial Correlation," Papers 2006.16997, arXiv.org, revised Apr 2023.
    16. Jack (Peiyao) Ma & Andrea Mantovani & Carlo Reggiani & Annette Broocks & Néstor Duch-Brown, 2024. "The Price Effects of Prohibiting Price Parity Clauses: Evidence from International Hotel Groups," Economics Series Working Papers 1043, University of Oxford, Department of Economics.
    17. Rik Chakraborti & Gavin Roberts, 2023. "How price-gouging regulation undermined COVID-19 mitigation: county-level evidence of unintended consequences," Public Choice, Springer, vol. 196(1), pages 51-83, July.
    18. Luo, Lianfa & Cheng, Zhiming & Ye, Qingqing & Cheng, Yanjun & Smyth, Russell & Yang, Zhiqing & Zhang, Le, 2023. "Nonmonetary Awards and Innovation: Evidence from Winning China's Top Brand Contest," GLO Discussion Paper Series 1345, Global Labor Organization (GLO).
    19. Bellon, Matthieu & Dabla-Norris, Era & Khalid, Salma, 2023. "Technology and tax compliance spillovers: Evidence from a VAT e-invoicing reform in Peru," Journal of Economic Behavior & Organization, Elsevier, vol. 212(C), pages 756-777.
    20. Dong, Xiaoqi & Liang, Yinhe & Zhang, Jiawei, 2023. "Fertility responses to the relaxation of migration restrictions: Evidence from the Hukou reform in China," China Economic Review, Elsevier, vol. 81(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:arx:papers:2109.05913. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.