# ------------------------------------------------ # CITATION.cff file created with {cffr} R package # See also: https://docs.ropensci.org/cffr/ # ------------------------------------------------ cff-version: 1.2.0 message: 'To cite package "phdid" in publications use:' type: software license: MIT title: 'phdid: Partial Homogeneity in Staggered Difference-in-Differences' version: 0.1.0 identifiers: - type: doi value: 10.32614/CRAN.package.phdid abstract: '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) .' authors: - family-names: Wagle given-names: Rohan email: rohan.wagle_ug2023@ashoka.edu.in - family-names: Arora given-names: Parush email: parush.arora@ashoka.edu.in preferred-citation: type: report title: A Bayesian Approach to Partial Homogeneity in Staggered Difference-in-Difference authors: - family-names: Arora given-names: Parush email: parush.arora@ashoka.edu.in - family-names: Wagle given-names: Rohan email: rohan.wagle_ug2023@ashoka.edu.in year: '2026' month: '7' institution: name: Ashoka University issue: '166' url: https://www.ashoka.edu.in/research/a-bayesian-approach-to-partial-homogeneity-in-staggered-difference-in-difference/ repository: https://ronwag2005.r-universe.dev repository-code: https://github.com/ronwag2005/phdid commit: 3f3733927f4eaa6a6d408e6f627f368e7136594b url: https://github.com/ronwag2005/phdid date-released: '2026-09-17' contact: - family-names: Wagle given-names: Rohan email: rohan.wagle_ug2023@ashoka.edu.in references: - type: report title: A Bayesian Approach to Partial Homogeneity in Staggered Difference-in-Difference authors: - family-names: Arora given-names: Parush - family-names: Wagle given-names: Rohan year: '2026' month: '3' institution: name: Social Science Research Network issue: '7207083' doi: 10.2139/ssrn.7207083 url: https://ssrn.com/abstract=7207083 - type: manual title: 'phdid: Partial Homogeneity in Staggered Difference-in-Differences' authors: - family-names: Wagle given-names: Rohan - family-names: Arora given-names: Parush year: '2026' notes: R package version 0.1.0 url: https://github.com/ronwag2005/phdid