Other packages > Find by keyword >

DIDmultiplegt  

Estimators DID with Multiple Groups and Periods
View on CRAN: Click here


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

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

Install by package version:
library("remotes")
install_version("DIDmultiplegt", "2.0.0")



Attach the package and use:
library("DIDmultiplegt")
Maintained by
Diego Ciccia
[Scholar Profile | Author Map]
First Published: 2020-10-26
Latest Update: 2024-02-29
Description:
Estimate the effect of a treatment on an outcome in sharp Difference-in-Difference designs with multiple groups and periods. It computes the DIDM estimator introduced in Section 4 of "Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects" (Chaisemartin, D'Haultfoeuille (2020) ), which generalizes the standard DID estimator with two groups, two periods and a binary treatment to situations with many groups,many periods and a potentially non-binary treatment. For each pair of consecutive time periods t-1 and t and for each value of the treatment d, the package computes a DID estimator comparing the outcome evolution among the switchers, the groups whose treatment changes from d to some other value between t-1 and t, to the same evolution among control groups whose treatment is equal to d both in t-1 and t. Then the DIDM estimator is equal to the average of those DIDs across all pairs of consecutive time periods and across all values of the treatment. Under a parallel trends assumption, DIDM is an unbiased and consistent estimator of the average treatment effect among switchers, at the time period when they switch. The package can also compute placebo estimators that can be used to test the parallel trends assumption. Finally, in staggered adoption designs where each group's treatment is weakly increasing over time, it can compute estimators of switchers' dynamic treatment effects, one time period or more after they have started receiving the treatment.
How to cite:
Diego Ciccia (2020). DIDmultiplegt: Estimators DID with Multiple Groups and Periods. R package version 2.0.0, https://cran.r-project.org/web/packages/DIDmultiplegt. Accessed 03 Apr. 2025.
Previous versions and publish date:
0.1.0 (2020-10-26 10:50), 0.1.2 (2024-02-03 15:00), 0.1.3 (2024-02-29 22:22), 0.1.4 (2024-05-27 15:50)
Other packages that cited DIDmultiplegt R package
View DIDmultiplegt citation profile
Other R packages that DIDmultiplegt depends, imports, suggests or enhances
Complete documentation for DIDmultiplegt
Functions, R codes and Examples using the DIDmultiplegt R package
Some associated functions: did_multiplegt . 
Some associated R codes: did_multiplegt.R .  Full DIDmultiplegt package functions and examples
Downloads during the last 30 days
03/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/01Downloads for DIDmultiplegt05101520253035TrendBars

Today's Hot Picks in Authors and Packages

RI2by2  
Randomization Inference for Treatment Effects on a Binary Outcome
Computes attributable effects based confidence interval, permutation test confidence interval, or as ...
Download / Learn more Package Citations See dependency  
automl  
Deep Learning with Metaheuristic
Fits from simple regression to highly customizable deep neural networks either with gradient descen ...
Download / Learn more Package Citations See dependency  
RobustANOVA  
Robust One-Way ANOVA Tests under Heteroscedasticity and Nonnormality
Robust tests (RW, RPB and RGF) are provided for testing the equality of several long-tailed symmetri ...
Download / Learn more Package Citations See dependency  
RZooRoH  
Partitioning of Individual Autozygosity into Multiple Homozygous-by-Descent Classes
Functions to identify Homozygous-by-Descent (HBD) segments associated with runs of homozygosity (ROH ...
Download / Learn more Package Citations See dependency  
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  
jointDiag  
Joint Approximate Diagonalization of a Set of Square Matrices
Different algorithms to perform approximate joint diagonalization of a finite set of square matrice ...
Download / Learn more Package Citations See dependency  

23,990

R Packages

207,311

Dependencies

64,809

Author Associations

23,991

Publication Badges

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