Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 10.7 KB

02_R.md

File metadata and controls

35 lines (25 loc) · 10.7 KB
layout title nav_order
default
R packages
3

R packages

Packages are sorted in alphabetical order by name. If the installation says install_github<name>, then you first need to install the devtools package install.packages("devtools"). Some installation paths have been split across lines to preserve table formatting in Markdown. When copying these make sure they are in the same line, for example, devtools::install_github("pedrohcgs/DRDID"). Package documentation is identified in the Website column.

Name Installation Website Package by Reference paper
bacondecomp install.packages ("bacondecomp") Link Evan Flack
Ed Jee
Andrew Goodman-Bacon (2021). Difference-in-differences with variation in treatment timing. Journal of Econometrics.
did install.packages("did") Link Pedro H.C. Sant'Anna
Brantly Callaway
Brantly Callaway, Pedro H.C. Sant'Anna (2020). Difference-in-Differences with multiple time periods, Journal of Econometrics.
did2s devtools::install_github ("kylebutts/did2s") Link Kyle Butts John Gardner (2021). Two-stage differences in differences.
Kirill Borusyak , Xavier Jaravel , Jann Spiess (2021). Revisiting Event Study Designs: Robust and Efficient Estimation
Liyang Sun, Sarah Abraham (2020). Estimating dynamic treatment effects in event studies with heterogeneous treatment effects. Journal of Econometrics.
Brantly Callaway, Pedro H.C. Sant'Anna (2020). Difference-in-Differences with multiple time periods, Journal of Econometrics.
Jonathan Roth , Pedro H.C. Sant'Anna (2021). Efficient Estimation for Staggered Rollout Designs.
didimputation devtools::install_github ("kylebutts/didimputation") Link Kyle Butts Kirill Borusyak , Xavier Jaravel , Jann Spiess (2021). Revisiting Event Study Designs: Robust and Efficient Estimation.
DIDmultiplegt install.packages ("DIDmultiplegt") Link Shuo Zhang Clément de Chaisemartin, Xavier D'Haultfoeuille (2020). Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects. American Economic Review.
drdid devtools::install_github ("pedrohcgs/DRDID") Link Pedro H.C. Sant'Anna
Jun Zhao
Pedro H.C. Sant'Anna , Jun Zhao (2020). Doubly robust difference-in-differences estimators, Journal of Econometrics.
fixest with sunab() function install.packages("fixest") Link Laurent Bergé Liyang Sun, Sarah Abraham (2020). Estimating dynamic treatment effects in event studies with heterogeneous treatment effects. Journal of Econometrics.
HonestDiD remotes::install_github ("asheshrambachan/HonestDiD") Link Ashesh Rambachan
Jonathan Roth
Ashesh Rambachan , Jonathan Roth (2021). An Honest Approach to Parallel Trends.
staggered devtools::install_github ("jonathandroth/staggered") Link Jonathan Roth
Pedro H.C. Sant'Anna
Jonathan Roth , Pedro H.C. Sant'Anna (2021). Efficient Estimation for Staggered Rollout Designs.
pretrends devtools::install_github ("jonathandroth/pretrends") Link Jonathan Roth Jonathan Roth (2021). Pre-test with Caution: Event-study Estimates After Testing for Parallel Trends.
TwoWayFEWeights install.packages ("TwoWayFEWeights") Link Shuo Zhang Clément de Chaisemartin, Xavier D'Haultfoeuille (2021). Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects.

How to use R packages?

Brantly Callaway and Pedro H.C. Sant'Anna have a bunch of guides for csdid in R.

Kyle Butts has an R event study package that plots multiple estimators.

Olivia Healy has a presentation that dicusses the DiD literature and also goes over the cs-did implementation in R.

A big thanks to Taylor Wright for initially helping with identifying the R packages!