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. 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.
    3. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    4. 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.
    5. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    6. Freyberger, Joachim & Rai, Yoshiyasu, 2018. "Uniform confidence bands: Characterization and optimality," Journal of Econometrics, Elsevier, vol. 204(1), pages 119-130.
    7. 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.
    8. 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.
    9. Amemiya, Takeshi, 1978. "A Note on a Random Coefficients Model," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 19(3), pages 793-796, October.
    10. 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.
    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. 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. 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.
    3. Dmitry Arkhangelsky & Guido Imbens, 2023. "Causal Models for Longitudinal and Panel Data: A Survey," Papers 2311.15458, arXiv.org, revised Jun 2024.
    4. 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.
    5. Clarke, Damian & Pailañir, Daniel & Athey, Susan & Imbens, Guido W., 2023. "Synthetic Difference-in-Differences Estimation," IZA Discussion Papers 15907, Institute of Labor Economics (IZA).
    6. 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.
    7. 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.
    8. 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.
    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. Kirill Borusyak & Xavier Jaravel & Jann Spiess, 2024. "Revisiting Event-Study Designs: Robust and Efficient Estimation," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 91(6), pages 3253-3285.
    14. Alexander Cuntz & Alessio Muscarnera & Utsav Bahl & Prince C. Oguguo, 2024. "Are the best tunes played on the oldest fiddles? Distribution and digitization of recorded classical music," WIPO Economic Research Working Papers 87, World Intellectual Property Organization - Economics and Statistics Division.
    15. Damian Clarke & Kathya Tapia-Schythe, 2021. "Implementing the panel event study," Stata Journal, StataCorp LP, vol. 21(4), pages 853-884, December.
    16. Torrini, Irene & Lucifora, Claudio & Russo, Antonio Giampiero, 2023. "The long-term effects of hospitalization on health care expenditures: An empirical analysis for the young-old population in Lombardy," Health Policy, Elsevier, vol. 132(C).
    17. Chu, Ziyan & Zhou, Yichen Christy, 2023. "The effect of adopting the Next Generation Air Transportation System (NextGen) on air travel performance," Regional Science and Urban Economics, Elsevier, vol. 102(C).
    18. Leschnig, Lisa & Schwerdt, Guido & Zigova, Katarina, 2022. "Central exams and adult skills: Evidence from PIAAC," Economics of Education Review, Elsevier, vol. 90(C).
    19. Clément de Chaisemartin & Xavier D’Haultfœuille, 2023. "Two-way fixed effects and differences-in-differences with heterogeneous treatment effects: a survey," The Econometrics Journal, Royal Economic Society, vol. 26(3), pages 1-30.
    20. Steinbach, Sandro, 2023. "The Russia–Ukraine war and global trade reallocations," Economics Letters, Elsevier, vol. 226(C).

    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.