Other packages > Find by keyword >

did  

Treatment Effects with Multiple Periods and Groups
View on CRAN: Click here


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

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

Install by package version:
library("remotes")
install_version("did", "2.1.2")



Attach the package and use:
library("did")
Maintained by
Brantly Callaway
[Scholar Profile | Author Map]
First Published: 2018-04-03
Latest Update: 2022-07-20
Description:
The standard Difference-in-Differences (DID) setup involves two periods and two groups -- a treated group and untreated group. Many applications of DID methods involve more than two periods and have individuals that are treated at different points in time. This package contains tools for computing average treatment effect parameters in Difference in Differences setups with more than two periods and with variation in treatment timing using the methods developed in Callaway and Sant'Anna (2021) . The main parameters are group-time average treatment effects which are the average treatment effect for a particular group at a a particular time. These can be aggregated into a fewer number of treatment effect parameters, and the package deals with the cases where there is selective treatment timing, dynamic treatment effects, calendar time effects, or combinations of these. There are also functions for testing the Difference in Differences assumption, and plotting group-time average treatment effects.
How to cite:
Brantly Callaway (2018). did: Treatment Effects with Multiple Periods and Groups. R package version 2.1.2, https://cran.r-project.org/web/packages/did. Accessed 08 May. 2025.
Previous versions and publish date:
1.0.0 (2018-04-03 20:18), 1.1.0 (2018-07-11 17:40), 1.1.2 (2018-09-11 19:20), 1.2.0 (2018-10-17 00:40), 1.2.1 (2019-06-14 21:45), 1.2.2 (2019-06-21 09:50), 1.2.3 (2020-02-18 01:00), 2.0.0 (2020-12-11 23:40), 2.1.0 (2021-12-10 23:30), 2.1.1 (2022-01-27 23:00)
Other packages that cited did R package
View did citation profile
Other R packages that did depends, imports, suggests or enhances
Complete documentation for did
Downloads during the last 30 days
04/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/0205/0305/0405/0505/06Downloads for did100120140160180200220240260280300320TrendBars

Today's Hot Picks in Authors and Packages

trajr  
Animal Trajectory Analysis
A toolbox to assist with statistical analysis of animal trajectories. It provides simple access to a ...
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  
gms  
'GAMS' Modularization Support Package
A collection of tools to create, use and maintain modularized model code written in the modeling la ...
Download / Learn more Package Citations See dependency  
gaussDiff  
Difference measures for multivariate Gaussian probability density functions
A collection difference measures for multivariate Gaussian probability density functions, such as t ...
Download / Learn more Package Citations See dependency  
MXM  
Feature Selection (Including Multiple Solutions) and Bayesian Networks
Many feature selection methods for a wide range of response variables, including minimal, statistica ...
Download / Learn more Package Citations See dependency  
MultiATSM  
Multicountry Term Structure of Interest Rates Models
Estimation routines for several classes of affine term structure of interest rates models. All the m ...
Download / Learn more Package Citations See dependency  

24,205

R Packages

207,311

Dependencies

65,312

Author Associations

24,206

Publication Badges

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