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. Haiyue Liu & Zhimin Yi & Hua Shang & Zihan Liu, 2024. "Foreign bank entry and the outward foreign direct investment of companies: evidence from China," Journal of International Business Studies, Palgrave Macmillan;Academy of International Business, vol. 55(7), pages 896-913, September.
    2. Guy Lacroix & Pierre-Carl Michaud, 2024. "Tax Incentives and Older Workers: Evidence from Canada," CIRANO Working Papers 2024s-06, CIRANO.
    3. Landgraf, Steven W., 2023. "Measuring incumbent ISP response to municipal broadband opt-out referenda in Colorado," Telecommunications Policy, Elsevier, vol. 47(10).
    4. Kefan Xu & Peng Yuan & Guangjie Wang & Renjie Yu, 2024. "The Effect of the National Specially Monitored Firms Program on Water-Polluting Firms’ Green Total Factor Productivity," Sustainability, MDPI, vol. 16(18), pages 1-20, September.
    5. Brantly Callaway, 2022. "Difference-in-Differences for Policy Evaluation," Papers 2203.15646, arXiv.org.
    6. Johanna Catherine Maclean & Sabrina Wulff Pabilonia, 2024. "Paid Sick Leave and Childcare," NBER Working Papers 32710, National Bureau of Economic Research, Inc.
    7. Guy Lacroix & Pierre-Carl Michaud, 2024. "Tax Incentives and Older Workers: Evidence from Canada," Cahiers de recherche / Working Papers 02, Chaire de recherche Jacques-Parizeau en politiques économiques / Jacques-Parizeau Research Chair in Economic Policy.

    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. Berens, Johannes & Henao, Leandro & Schneider, Kerstin, 2024. "Tuition fees and academic (in)activity in higher education: How did students adjust to the abolition of tuition fees in Germany?," Ruhr Economic Papers 1074, RWI - Leibniz-Institut für Wirtschaftsforschung, Ruhr-University Bochum, TU Dortmund University, University of Duisburg-Essen.
    2. Hofmann, Sarah, 2023. "Disease perception and preventive behavior: The vaccination response to local measles outbreaks," Social Science & Medicine, Elsevier, vol. 331(C).
    3. 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.
    4. Altmejd, Adam, 2023. "Inheritance of fields of study," Working Paper Series 2023:11, IFAU - Institute for Evaluation of Labour Market and Education Policy.
    5. 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).
    6. Alex Hollingsworth & Krzysztof Karbownik & Melissa A. Thomasson & Anthony Wray, 2024. "The Gift of a Lifetime: The Hospital, Modern Medicine, and Mortality," American Economic Review, American Economic Association, vol. 114(7), pages 2201-2238, July.
    7. 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.
    8. 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).
    9. Sant’Anna, Pedro H.C. & Zhao, Jun, 2020. "Doubly robust difference-in-differences estimators," Journal of Econometrics, Elsevier, vol. 219(1), pages 101-122.
    10. Binelli, Chiara & Comi, Simona & Meschi, Elena & Pagani, Laura, 2024. "Every cloud has a silver lining: The role of study time and class recordings on university students’ performance during COVID-19," Journal of Economic Behavior & Organization, Elsevier, vol. 225(C), pages 305-328.
    11. Jerg Gutmann & Matthias Neuenkirch & Florian Neumeier, 2024. "Do China and Russia undermine Western sanctions? Evidence from DiD and event study estimation," Review of International Economics, Wiley Blackwell, vol. 32(1), pages 132-160, February.
    12. 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.
    13. Arne Henningsen & Guy Low & David Wuepper & Tobias Dalhaus & Hugo Storm & Dagim Belay & Stefan Hirsch, 2024. "Estimating Causal Effects with Observational Data: Guidelines for Agricultural and Applied Economists," IFRO Working Paper 2024/03, University of Copenhagen, Department of Food and Resource Economics.
    14. 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.
    15. 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.
    16. Bergvall, Sanna & Fernström, Clara & Ranehill, Eva & Sandberg, Anna, 2024. "The Impact of PhD Studies on Mental Health—A Longitudinal Population Study," Working Papers in Economics 846, University of Gothenburg, Department of Economics.
    17. DeMalach, Elad & Schlosser, Analia, 2024. "Short- and Long-Term Effects of Universal Preschool: Evidence from the Arab Population in Israel," CEPR Discussion Papers 18781, C.E.P.R. Discussion Papers.
    18. Jones, Kelly & Wilcher, Britni, 2024. "Reducing maternal labor market detachment: A role for paid family leave," Labour Economics, Elsevier, vol. 87(C).
    19. 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.
    20. Motyakina, Yana, 2023. "Территории Опережающего Развития И Занятость В Моногородах Российской Федерации [Priority development areas and employment in Russian cities]," MPRA Paper 117635, University Library of Munich, Germany.

    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.