Other packages > Find by keyword >

did2s  

Two-Stage Difference-in-Differences Following Gardner (2021)
View on CRAN: Click here


Download and install did2s package within the R console
Install from CRAN:
install.packages("did2s")

Install from Github:
library("remotes")
install_github("cran/did2s")

Install by package version:
library("remotes")
install_version("did2s", "1.2.0")



Attach the package and use:
library("did2s")
Maintained by
Kyle Butts
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2021-09-27
Latest Update: 2023-04-07
Description:
Estimates Two-way Fixed Effects difference-in-differences/event-study models using the approach proposed by Gardner (2021) . To avoid the problems caused by OLS estimation of the Two-way Fixed Effects model, this function first estimates the fixed effects and covariates using untreated observations and then in a second stage, estimates the treatment effects.
How to cite:
Kyle Butts (2021). did2s: Two-Stage Difference-in-Differences Following Gardner (2021). R package version 1.2.0, https://cran.r-project.org/web/packages/did2s. Accessed 06 Mar. 2026.
Previous versions and publish date:
0.4.0 (2021-09-27 10:50), 0.6.0 (2022-04-07 21:42), 0.7.0 (2022-07-21 11:40), 1.0.0 (2023-03-11 17:10), 1.0.1 (2023-03-28 02:30), 1.0.2 (2023-04-07 17:50), 1.2.0 (2025-09-19 09:10)
Other packages that cited did2s R package
View did2s citation profile
Other R packages that did2s depends, imports, suggests or enhances
Complete documentation for did2s
Functions, R codes and Examples using the did2s R package
Some associated functions: castle . df_het . df_hom . did2s . event_study . gen_data . 
Some associated R codes: data.R . did2s-package.R . did2s.R . event_study.R . gen_data.R . utils-data-table.R . utils.R . zzz.R .  Full did2s package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
lbfgs  
Limited-memory BFGS Optimization
A wrapper built around the libLBFGS optimization library by Naoaki Okazaki. The lbfgs package implem ...
Download / Learn more Package Citations See dependency  
solitude  
An Implementation of Isolation Forest
Isolation forest is anomaly detection method introduced by the paper Isolation based Anomaly Detecti ...
Download / Learn more Package Citations See dependency  
mlr3viz  
Visualizations for 'mlr3'
Visualization package of the 'mlr3' ecosystem. It features plots for mlr3 objects such as tasks, le ...
Download / Learn more Package Citations See dependency  
DatabionicSwarm  
Swarm Intelligence for Self-Organized Clustering
Algorithms implementing populations of agents that interact with one another and sense their environ ...
Download / Learn more Package Citations See dependency  
openxlsx  
Read, Write and Edit xlsx Files
Simplifies the creation of Excel .xlsx files by providing a high level interface to writing, stylin ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA