<?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:title>Partial Homogeneity in Staggered Difference-in-Differences</dc:title>
  <dc:title>R package phdid version 0.1.0</dc:title>
  <dc: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) &lt;doi:10.2139/ssrn.7207083&gt;.</dc:description>
  <dc:type>Software</dc:type>
  <dc:relation>Depends: R (&gt;= 4.1.0)</dc:relation>
  <dc:relation>Imports: graphics, grDevices, stats, utils</dc:relation>
  <dc:relation>Suggests: did (&gt;= 2.1.0), knitr, rmarkdown, testthat (&gt;= 3.0.0)</dc:relation>
  <dc:creator>Rohan Wagle &lt;rohan.wagle_ug2023@ashoka.edu.in&gt;</dc:creator>
  <dc:publisher>Comprehensive R Archive Network (CRAN)</dc:publisher>
  <dc:contributor>Rohan Wagle [aut, cre, cph],
  Parush Arora [aut, cph]</dc:contributor>
  <dc:rights>MIT + file LICENSE (https://CRAN.R-project.org/package=phdid/LICENSE)</dc:rights>
  <dc:date>2026-09-15</dc:date>
  <dc:format>application/tgz</dc:format>
  <dc:identifier>https://CRAN.R-project.org/package=phdid</dc:identifier>
  <dc:identifier>doi:10.32614/CRAN.package.phdid</dc:identifier>
</oai_dc:dc>
