Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md
Unknown
LICENSE.note
NotificationsYou must be signed in to change notification settings

JMSLab/eventstudyr

Repository files navigation

CRAN statusCRAN RStudio mirror downloads

Overview

Theeventstudyr package implements tools for estimating linear panelevent study models, following the recommendations inFreyaldenhoven etal. (2021). Includes sup-t bands,testing for key hypotheses, least wiggly path through the Wald region.Allows instrumental variables estimation followingFreyaldenhoven etal. (2019).

Installation

# Install from CRANinstall.packages("eventstudyr")# Install latest version from GitHubinstall.packages("devtools")devtools::install_github("JMSLab/eventstudyr")

Usage

Find a minimal example below. For more examples see the packagedocumentationandvignette.

library(eventstudyr)set.seed(10)# for reproducibility of sup-t bandsestimates_ols<- EventStudy(estimator="OLS",data=example_data,# Use package sample dataoutcomevar="y_smooth_m",policyvar="z",idvar="id",timevar="t",controls="x_r",pre=0,post=4)plt<- EventStudyPlot(estimates=estimates_ols)plt

Event-study plot using the example data of the packageand default plotting options.

Citation

Simon Freyaldenhoven, Christian Hansen, Jorge Pérez Pérez, and Jesse M.Shapiro. “Visualization, Identification, and Estimation in the PanelEvent-Study Design.”NBER Working PaperNo. 29170, August 2021.

Simon Freyaldenhoven, Christian Hansen, Jorge Pérez Pérez, Jesse M.Shapiro, Veli M. Andirin, Richard Calvo, Santiago Hermo, Nathan Schor,Emily Wang. “eventstudyr package.” Code and data repository athttps://github.com/JMSLab/eventstudyr, March 2023.

Acknowledgments

Thank you to Eliana Sena Sarmiento and Melissa Wu for their excellentwork testing and reviewingeventstudyr prior to its public release.

About

No description, website, or topics provided.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md
Unknown
LICENSE.note

Stars

Watchers

Forks

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2025 Movatter.jp