IDEAS home Printed from https://ideas.repec.org/p/fip/fedpwp/98677.html
   My bibliography  Save this paper

xtevent: Estimation and Visualization in the Linear Panel Event-Study Design

Author

Listed:
  • Constantino Carreto
  • Simon Freyaldenhoven
  • Christian Hansen
  • Jorge Perez Perez
  • Jesse Shapiro

Abstract

Linear panel models and the “event-study plots” that often accompany them are popular tools for learning about policy effects. We introduce the Stata package xtevent, which enables the construction of event-study plots following the suggestions in Freyaldenhoven et al. (Forthcoming). The package implements various procedures to estimate the underlying policy effects and allows for nonbinary policy variables and estimation adjusting for pre-event trends.

Suggested Citation

  • Constantino Carreto & Simon Freyaldenhoven & Christian Hansen & Jorge Perez Perez & Jesse Shapiro, 2024. "xtevent: Estimation and Visualization in the Linear Panel Event-Study Design," Working Papers 24-15, Federal Reserve Bank of Philadelphia.
  • Handle: RePEc:fip:fedpwp:98677
    DOI: 10.21799/frbp.wp.2024.15
    as

    Download full text from publisher

    File URL: https://www.philadelphiafed.org/-/media/frbp/assets/working-papers/2024/wp24-15.pdf
    Download Restriction: no

    File URL: https://libkey.io/10.21799/frbp.wp.2024.15?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Simon Freyaldenhoven & Christian Hansen & Jesse M. Shapiro, 2019. "Pre-event Trends in the Panel Event-Study Design," American Economic Review, American Economic Association, vol. 109(9), pages 3307-3338, September.
    2. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    3. Paulo Guimarães & Pedro Portugal, 2010. "A simple feasible procedure to fit models with high-dimensional fixed effects," Stata Journal, StataCorp LP, vol. 10(4), pages 628-649, December.
    4. Carlos Dobkin & Amy Finkelstein & Raymond Kluender & Matthew J. Notowidigdo, 2018. "The Economic Consequences of Hospital Admissions," American Economic Review, American Economic Association, vol. 108(2), pages 308-352, February.
    5. 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.
    6. 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.
    7. Clément de Chaisemartin & Xavier d'Haultfoeuille & Yannick Guyonvarch, 2019. "DID_MULTIPLEGT: Stata module to estimate sharp Difference-in-Difference designs with multiple groups and periods," SciencePo Working papers Main hal-03946768, HAL.
    8. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    9. Freyberger, Joachim & Rai, Yoshiyasu, 2018. "Uniform confidence bands: Characterization and optimality," Journal of Econometrics, Elsevier, vol. 204(1), pages 119-130.
    10. Hansen, Christian B., 2007. "Generalized least squares inference in panel and multilevel models with serial correlation and fixed effects," Journal of Econometrics, Elsevier, vol. 140(2), pages 670-694, October.
    11. José Luis Montiel Olea & Mikkel Plagborg‐Møller, 2019. "Simultaneous confidence bands: Theory, implementation, and an application to SVARs," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 34(1), pages 1-17, January.
    Full references (including those not matched with items on IDEAS)

    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. Simon Freyaldenhoven & Christian B. Hansen & Jorge Pérez Pérez & Jesse M. Shapiro & Constantino Carreto, 2024. "Policy Effect Estimation and Visualization in Linear Panel Event-Study Designs: Introducing the xtevent Package," Working Papers 2024-09, Banco de México.
    2. 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.
    3. Simon Freyaldenhoven & Christian Hansen & Jorge Perez Perez & Jesse Shapiro, 2021. "Visualization, Identification, and stimation in the Linear Panel Event-Study Design," Working Papers 21-44, Federal Reserve Bank of Philadelphia.
    4. Damian Clarke & Daniel Paila~nir & Susan Athey & Guido Imbens, 2023. "Synthetic Difference In Differences Estimation," Papers 2301.11859, arXiv.org, revised Feb 2023.
    5. Dmitry Arkhangelsky & Guido Imbens, 2023. "Causal Models for Longitudinal and Panel Data: A Survey," Papers 2311.15458, arXiv.org, revised Jun 2024.
    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. Ponzo, Michela & Scoppa, Vincenzo, 2023. "Famous after death: The effect of a writer's death on book sales," Journal of Economic Behavior & Organization, Elsevier, vol. 210(C), pages 210-225.
    8. Carter, Colin A. & Steinbach, Sandro & Zhuang, Xiting, 2022. "Global Container Trade Disruptions and U.S. Agricultural Exports," 2022 Annual Meeting, July 31-August 2, Anaheim, California 322364, Agricultural and Applied Economics Association.
    9. Boto-García, David & Balado-Naves, Roberto & Mayor, Matías & Baños-Pino, José Francisco, 2023. "Consumers' demand for operational licencing: evidence from Airbnb in Paris," Annals of Tourism Research, Elsevier, vol. 100(C).
    10. ITO Tadashi & TANAKA Ayumu, 2023. "Inward Foreign Direct Investment, Transactions, and Domestic Firms' Performance: Evidence from firm-to-firm transaction linkage," Discussion papers 23026, Research Institute of Economy, Trade and Industry (RIETI).
    11. Haddou, Samira, 2024. "Determinants of CDS in core and peripheral European countries: A comparative study during crisis and calm periods," The North American Journal of Economics and Finance, Elsevier, vol. 71(C).
    12. David Escamilla-Guerrero & Edward Kosack & Zachary Ward, 2023. "The Impact of Violence during the Mexican Revolution on Migration to the United States," NBER Working Papers 31531, National Bureau of Economic Research, Inc.
    13. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    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. Kirill Borusyak & Xavier Jaravel & Jann Spiess, 2021. "Revisiting Event Study Designs: Robust and Efficient Estimation," Papers 2108.12419, arXiv.org, revised Jan 2024.
    16. Cl'ement de Chaisemartin & Xavier D'Haultf{oe}uille, 2021. "Two-Way Fixed Effects and Differences-in-Differences with Heterogeneous Treatment Effects: A Survey," Papers 2112.04565, arXiv.org, revised Jun 2022.
    17. Tal Gross & Raymond Kluender & Feng Liu & Matthew J. Notowidigdo & Jialan Wang, 2021. "The Economic Consequences of Bankruptcy Reform," American Economic Review, American Economic Association, vol. 111(7), pages 2309-2341, July.
    18. Sumit Agarwal & Slava Mikhed & Barry Scholnick & Man Zhang, 2022. "Reducing Strategic Default in a Financial Crisis," Working Papers 21-36, Federal Reserve Bank of Philadelphia.
    19. Perrotta Berlin, Maria & Latour, Chiara & Spagnolo, Giancarlo, 2023. "International Spillovers from Prostitution Regulation: The "Nordic Model" and Sex Tourism," SITE Working Paper Series 63, Stockholm School of Economics, Stockholm Institute of Transition Economics, revised 25 Sep 2023.
    20. Timothy R. Hodge & Cooper Hazel, 2022. "The munchies: Marijuana legalization and food sales in Washington," Southern Economic Journal, John Wiley & Sons, vol. 89(1), pages 112-137, July.

    More about this item

    Keywords

    xtevent; xteventplot; xteventtest; get unit time effects; linear panel data models; two-way fixed effects regression; pre-trends; event study;
    All these keywords.

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    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:fip:fedpwp:98677. 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: Beth Paul (email available below). General contact details of provider: https://edirc.repec.org/data/frbphus.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.