Other packages > Find by keyword >

phdid  

Partial Homogeneity in Staggered Difference-in-Differences
View on CRAN: Click here


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

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

Install by package version:
library("remotes")
install_version("phdid", "0.1.0")



Attach the package and use:
library("phdid")
Maintained by
Rohan Wagle
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-09-15
Latest Update: 2026-09-15
Description:
In staggered difference-in-differences designs the treatment effect is a vector of cohort-time effects rather than a single number. Estimating each separately is unbiased but imprecise when some are equal, while pooling them all is precise but biased under genuine heterogeneity. This package treats the choice as a partition-selection problem on the cohort-time cells and provides two estimators for it: a Dirichlet process mixture fitted by a collapsed Gibbs sampler, whose posterior marginalises over the unknown partition and reports co-clustering probabilities, and an 'L0'-penalised estimator that returns a single partition and arises as the fixed-variance maximum a posteriori solution of the same model. Also provides tests for whether the cohort-time effects carry recoverable heterogeneity at all, sampler diagnostics including exact enumeration of the partition posterior for small designs, regularisation paths for both estimators, and a calibrated data-generating process. All estimators accept a vector of first-stage cohort-time effects with their joint covariance, so any heterogeneity-robust first-stage estimator may be used. Methods are described in Arora and Wagle (2026) <doi:10.2139/ssrn.7207083>.
How to cite:
Rohan Wagle (2026). phdid: Partial Homogeneity in Staggered Difference-in-Differences. R package version 0.1.0, https://cran.r-project.org/web/packages/phdid. Accessed 24 Oct. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited phdid R package
View phdid citation profile
Other R packages that phdid depends, imports, suggests or enhances
Complete documentation for phdid
Functions, R codes and Examples using the phdid R package
Full phdid package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

FDRsampsize  
Compute Sample Size that Meets Requirements for Average Power and FDR
Defines a collection of functions to compute average power and sample size for studies that use the ...
Download / Learn more Package Citations See dependency  
forecastHybrid  
Convenient Functions for Ensemble Time Series Forecasts
Convenient functions for ensemble forecasts in R combining approaches from the 'forecast' package. ...
Download / Learn more Package Citations See dependency  
magicfor  
Magic Functions to Obtain Results from for Loops
Magic functions to obtain results from for loops. ...
Download / Learn more Package Citations See dependency  
gemlog  
File Conversion for "Gem Infrasound Logger"
Reads data files from the 'Gem infrasound logger' for analysis and converts to segy format (which is ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
givitiR  
The GiViTI Calibration Test and Belt
Functions to assess the calibration of logistic regression models with the GiViTI (Gruppo Italiano p ...
Download / Learn more Package Citations See dependency  

29,080

R Packages

247,686

Dependencies

77,281

Author Associations

29,081

Publication Badges

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