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 26 Aug. 2026.
Previous versions and publish date:
(2026-07-09 07:31), 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

ncodeR  
Techniques for Automated Classifiers
A set of techniques that can be used to develop, validate, and implement automated classifiers. A po ...
Download / Learn more Package Citations See dependency  
leafgl  
High-Performance 'WebGl' Rendering for Package 'leaflet'
Provides bindings to the 'Leaflet.glify' JavaScript library which extends the 'leaflet' JavaScript l ...
Download / Learn more Package Citations See dependency  
PCADSC  
Tools for Principal Component Analysis-Based Data Structure Comparisons
A suite of non-parametric, visual tools for assessing differences in data structures for two datase ...
Download / Learn more Package Citations See dependency  
SelvarMix  
Regularization for Variable Selection in Model-Based Clustering and Discriminant Analysis
Performs a regularization approach to variable selection in themodel-based clustering and classifica ...
Download / Learn more Package Citations See dependency  
clinUtils  
General Utility Functions for Analysis of Clinical Data
Utility functions to facilitate the import, the reporting and analysis of clinical data. Example ...
Download / Learn more Package Citations See dependency  
RCytoGPS  
Using Cytogenetics Data in R
Defines classes and methods to process text-based cytogenetics using the CytoGPS web site, then imp ...
Download / Learn more Package Citations See dependency  

28,332

R Packages

239,283

Dependencies

75,113

Author Associations

28,333

Publication Badges

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