IDEAS home Printed from https://ideas.repec.org/p/zbw/iwhdps/32020.html
   My bibliography  Save this paper

Flexpaneldid: A Stata toolbox for causal analysis with varying treatment time and duration

Author

Listed:
  • Dettmann, Eva
  • Giebler, Alexander
  • Weyh, Antje

Abstract

The paper presents a modification of the matching and difference-in-differences approach of Heckman et al. (1998) for the staggered treatment adoption design and a Stata tool that implements the approach. This flexible conditional difference-in-differences approach is particularly useful for causal analysis of treatments with varying start dates and varying treatment durations. Introducing more flexibility enables the user to consider individual treatment periods for the treated observations and thus circumventing problems arising in canonical difference-in-differences approaches. The open-source flexpaneldid toolbox for Stata implements the developed approach and allows comprehensive robustness checks and quality tests. The core of the paper gives comprehensive examples to explain the use of the commands and its options on the basis of a publicly accessible data set.

Suggested Citation

  • Dettmann, Eva & Giebler, Alexander & Weyh, Antje, 2020. "Flexpaneldid: A Stata toolbox for causal analysis with varying treatment time and duration," IWH Discussion Papers 3/2020, Halle Institute for Economic Research (IWH).
  • Handle: RePEc:zbw:iwhdps:32020
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/214904/1/1693129671.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Clément de Chaisemartin & Xavier D'Haultfœuille, 2020. "Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects," American Economic Review, American Economic Association, vol. 110(9), pages 2964-2996, September.
    2. Richard Blundell & Monica Costa Dias, 2009. "Alternative Approaches to Evaluation in Empirical Microeconomics," Journal of Human Resources, University of Wisconsin Press, vol. 44(3).
    3. Manasi Deshpande & Yue Li, 2019. "Who Is Screened Out? Application Costs and the Targeting of Disability Programs," American Economic Journal: Economic Policy, American Economic Association, vol. 11(4), pages 213-248, November.
    4. Freier, Ronny & Schumann, Mathias & Siedler, Thomas, 2015. "The earnings returns to graduating with honors — Evidence from law graduates," Labour Economics, Elsevier, vol. 34(C), pages 39-50.
    5. Marcus, Jan & Siedler, Thomas, 2015. "Reducing binge drinking? The effect of a ban on late-night off-premise alcohol sales on alcohol-related hospital stays in Germany," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 0, pages 55-77.
    6. Annette Bergemann & Bernd Fitzenberger & Stefan Speckesser, 2009. "Evaluating the dynamic employment effects of training programs in East Germany using conditional difference-in-differences," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 24(5), pages 797-823.
    7. Joshua D. Angrist & Jörn-Steffen Pischke, 2009. "Mostly Harmless Econometrics: An Empiricist's Companion," Economics Books, Princeton University Press, edition 1, number 8769.
    8. Matthew Blackwell & Stefano Iacus & Gary King & Giuseppe Porro, 2009. "cem: Coarsened exact matching in Stata," Stata Journal, StataCorp LP, vol. 9(4), pages 524-546, December.
    9. David H. Autor, 2003. "Outsourcing at Will: The Contribution of Unjust Dismissal Doctrine to the Growth of Employment Outsourcing," Journal of Labor Economics, University of Chicago Press, vol. 21(1), pages 1-42, January.
    10. Bernini, Cristina & Pellegrini, Guido, 2011. "How are growth and productivity in private firms affected by public subsidy? Evidence from a regional policy," Regional Science and Urban Economics, Elsevier, vol. 41(3), pages 253-265, May.
    11. 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.
    12. Ho, Daniel E. & Imai, Kosuke & King, Gary & Stuart, Elizabeth A., 2007. "Matching as Nonparametric Preprocessing for Reducing Model Dependence in Parametric Causal Inference," Political Analysis, Cambridge University Press, vol. 15(3), pages 199-236, July.
    13. Zhong Zhao, 2004. "Using Matching to Estimate Treatment Effects: Data Requirements, Matching Metrics, and Monte Carlo Evidence," The Review of Economics and Statistics, MIT Press, vol. 86(1), pages 91-107, February.
    14. Athey, Susan & Imbens, Guido W., 2022. "Design-based analysis in Difference-In-Differences settings with staggered adoption," Journal of Econometrics, Elsevier, vol. 226(1), pages 62-79.
    15. Jeffrey M Wooldridge, 2010. "Econometric Analysis of Cross Section and Panel Data," MIT Press Books, The MIT Press, edition 2, volume 1, number 0262232588, December.
    16. Neumark, David & Kolko, Jed, 2010. "Do enterprise zones create jobs? Evidence from California's enterprise zone program," Journal of Urban Economics, Elsevier, vol. 68(1), pages 1-19, July.
    17. James J. Heckman & Hidehiko Ichimura & Petra E. Todd, 1997. "Matching As An Econometric Evaluation Estimator: Evidence from Evaluating a Job Training Programme," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 64(4), pages 605-654.
    18. Alberto Abadie & David Drukker & Jane Leber Herr & Guido W. Imbens, 2004. "Implementing matching estimators for average treatment effects in Stata," Stata Journal, StataCorp LP, vol. 4(3), pages 290-311, September.
    19. Itzik Fadlon & Torben Heien Nielsen, 2015. "Family Labor Supply Responses to Severe Health Shocks," NBER Working Papers 21352, National Bureau of Economic Research, Inc.
    20. David Greenaway & Joakim Gullstrand & Richard Kneller, 2005. "Exporting May Not Always Boost Firm Productivity," Review of World Economics (Weltwirtschaftliches Archiv), Springer;Institut für Weltwirtschaft (Kiel Institute for the World Economy), vol. 141(4), pages 561-582, December.
    21. Bronzini, Raffaello & de Blasio, Guido, 2006. "Evaluating the impact of investment incentives: The case of Italy's Law 488/1992," Journal of Urban Economics, Elsevier, vol. 60(2), pages 327-349, September.
    22. Ham, John C. & Swenson, Charles & İmrohoroğlu, Ayşe & Song, Heonjae, 2011. "Government programs can improve local labor markets: Evidence from State Enterprise Zones, Federal Empowerment Zones and Federal Enterprise Community," Journal of Public Economics, Elsevier, vol. 95(7), pages 779-797.
    23. Kosuke Imai & In Song Kim, 2019. "When Should We Use Unit Fixed Effects Regression Models for Causal Inference with Longitudinal Data?," American Journal of Political Science, John Wiley & Sons, vol. 63(2), pages 467-490, April.
    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. Hsien-Yi Chen & Sheng-Syan Chen, 2023. "Can credit default swaps exert an enduring monitoring influence on political integrity?," Review of Quantitative Finance and Accounting, Springer, vol. 60(2), pages 445-469, February.
    2. Christopher F. Baum & Arash Kordestani & Dorothea Schäfer & Andreas Stephan, 2021. "Firms in Green Public Procurement: Financial Strength Indicators’ Impact on Contract Awards and Its Repercussion on Financial Strength," Vierteljahrshefte zur Wirtschaftsforschung / Quarterly Journal of Economic Research, DIW Berlin, German Institute for Economic Research, vol. 90(4), pages 71-92.
    3. Vanessa Cirulli & Giorgia Marini, 2023. "Do mergers really increase output? Evidence from English hospitals," Annals of Public and Cooperative Economics, Wiley Blackwell, vol. 94(1), pages 159-189, March.
    4. Schaufele, Brandon, 2022. "Chilling Effects from Anti-SLAPP Laws," MPRA Paper 113740, University Library of Munich, Germany.
    5. Ibrahim, Kobe H. & Hendriks, Sheryl L. & Schönfeldt, Hettie, 2022. "The effect of smallholder land tenure on child malnutrition in Nigeria," Land Use Policy, Elsevier, vol. 119(C).
    6. Roth, Jonathan & Sant’Anna, Pedro H.C. & Bilinski, Alyssa & Poe, John, 2023. "What’s trending in difference-in-differences? A synthesis of the recent econometrics literature," Journal of Econometrics, Elsevier, vol. 235(2), pages 2218-2244.
    7. Brachert, Matthias & Brautzsch, Hans-Ulrich & Dettmann, Eva & Giebler, Alexander & Schneider, Lutz & Titze, Mirko, 2020. ""Evaluation der Gemeinschaftsaufgabe 'Verbesserung der regionalen Wirtschaftsstruktur' (GRW)" durch einzelbetriebliche Erfolgskontrolle: Endbericht," IWH Online 5/2020, Halle Institute for Economic Research (IWH).
    8. Chevillard, Guillaume & Mousquès, Julien, 2021. "Medically underserved areas: are primary care teams efficient at attracting and retaining general practitioners?," Social Science & Medicine, Elsevier, vol. 287(C).
    9. Keraga, Mezid N. & Stephan, Andreas, 2023. "Does innovation stimulate employment in Africa? New firm-level evidence from the Worldbank Enterprise Survey," Working Paper Series in Economics and Institutions of Innovation 494, Royal Institute of Technology, CESIS - Centre of Excellence for Science and Innovation Studies.

    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. Dettmann, Eva & Giebler, Alexander & Weyh, Antje, 2019. "flexpaneldid: A Stata command for causal analysis with varying treatment time and duration," IWH Discussion Papers 5/2019, Halle Institute for Economic Research (IWH).
    2. Giulia Bettin & Isabella Giorgetti & Stefano Staffolani, 2024. "The impact of Covid-19 lockdown on the gender gap in the Italian labour market," Review of Economics of the Household, Springer, vol. 22(1), pages 1-33, March.
    3. Goodman-Bacon, Andrew, 2021. "Difference-in-differences with variation in treatment timing," Journal of Econometrics, Elsevier, vol. 225(2), pages 254-277.
    4. Dettmann, Eva & Weyh, Antje & Titze, Mirko, 2017. "Who benefits from GRW? Heterogeneous effects of investment subsidies in Saxony Anhalt," VfS Annual Conference 2017 (Vienna): Alternative Structures for Money and Banking 168158, Verein für Socialpolitik / German Economic Association.
    5. Augusto Cerqua & Guido Pellegrini, 2013. "Beyond the SUTVA: how industrial policy evaluations change when we allow for interaction among firms," ERSA conference papers ersa13p340, European Regional Science Association.
    6. Baker, Andrew C. & Larcker, David F. & Wang, Charles C.Y., 2022. "How much should we trust staggered difference-in-differences estimates?," Journal of Financial Economics, Elsevier, vol. 144(2), pages 370-395.
    7. Gregory Faletto, 2023. "Fused Extended Two-Way Fixed Effects for Difference-in-Differences with Staggered Adoptions," Papers 2312.05985, arXiv.org.
    8. Bearzotti, Enia & Polanec, Sašo & Bartolj, Tjaša, 2023. "The Effects of Subsidies on Firm Size and Productivity," MPRA Paper 118490, University Library of Munich, Germany.
    9. Augusto Cerqua & Guido Pellegrini, 2014. "Beyond the SUTVA: how policy evaluations change when we allow for interactions among firms," Working Papers 2/14, Sapienza University of Rome, DISS.
    10. Roth, Jonathan & Sant’Anna, Pedro H.C. & Bilinski, Alyssa & Poe, John, 2023. "What’s trending in difference-in-differences? A synthesis of the recent econometrics literature," Journal of Econometrics, Elsevier, vol. 235(2), pages 2218-2244.
    11. Pengju Zhang, 2023. "The fiscal and economic impacts of municipal dissolution: evidence from New York," International Tax and Public Finance, Springer;International Institute of Public Finance, vol. 30(4), pages 948-1001, August.
    12. Augusto Cerqua & Guido Pellegrini, 2017. "Industrial policy evaluation in the presence of spillovers," Small Business Economics, Springer, vol. 49(3), pages 671-686, October.
    13. Marco Caliendo & Sabine Kopeinig, 2008. "Some Practical Guidance For The Implementation Of Propensity Score Matching," Journal of Economic Surveys, Wiley Blackwell, vol. 22(1), pages 31-72, February.
    14. Kurt Schmidheiny & Sebastian Siegloch, 2023. "On event studies and distributed‐lags in two‐way fixed effects models: Identification, equivalence, and generalization," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 38(5), pages 695-713, August.
    15. Millimet, Daniel L. & Bellemare, Marc, 2023. "Fixed Effects and Causal Inference," IZA Discussion Papers 16202, Institute of Labor Economics (IZA).
    16. Jeffrey M Wooldridge, 2023. "Simple approaches to nonlinear difference-in-differences with panel data," The Econometrics Journal, Royal Economic Society, vol. 26(3), pages 31-66.
    17. Ramboer, Sander & Reynaerts, Jo, 2020. "Indecent proposals: Estimating the impact of regional state aid through EU guideline compliance," Regional Science and Urban Economics, Elsevier, vol. 82(C).
    18. Brachert, Matthias & Dettmann, Eva & Titze, Mirko, 2019. "The regional effects of a place-based policy – Causal evidence from Germany," Regional Science and Urban Economics, Elsevier, vol. 79(C).
    19. Isabelle Chort & Berk Öktem, 2023. "Agricultural shocks, coping policies and deforestation: evidence from the coffee leaf rust epidemic in mexico," Working Papers hal-03715600, HAL.
    20. Cl'ement de Chaisemartin & Xavier D'Haultfoeuille, 2020. "Difference-in-Differences Estimators of Intertemporal Treatment Effects," Papers 2007.04267, arXiv.org, revised Nov 2023.

    More about this item

    Keywords

    causal inference; staggered treatment adoption; variation in treatment timing; effect heterogeneity; event study design; conditional difference-in-differences; matching;
    All these keywords.

    JEL classification:

    • A11 - General Economics and Teaching - - General Economics - - - Role of Economics; Role of Economists
    • D61 - Microeconomics - - Welfare Economics - - - Allocative Efficiency; Cost-Benefit Analysis
    • H20 - Public Economics - - Taxation, Subsidies, and Revenue - - - General
    • Z0 - Other Special Topics - - General

    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:zbw:iwhdps:32020. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/iwhhhde.html .

    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.