Skip to content
Demonstrator · items marked Example are invented · what exists today
E2ER

Templates · did-staggered-panel

Staggered difference-in-differences (economics)

A fork of the empirical template for policy evaluations with staggered adoption: it adds a pre-trend check and requires a heterogeneity-robust estimator when treatment timing varies.

ExampleExample: a fork of the empirical templateempirical
Input
A research question, a unit-by-period panel with treatment dates, and your literature
Output
A draft paper with event-study figures, a replication package and an evidence package
Always at the end
compileaudit_exportgithub_pushstructured_export runs however the run ended

A fork of the empirical template. It keeps every step and check of the original and adds the design-specific checks marked below. Skills it loads: Difference-in-Differences, Financial Event Studies, Panel Data Methods.

Description

Data model
Discipline
Economics
Method family
Empirical (quantitative)
Design
Difference-in-differencesEvent studyPanel fixed effects
Research stage
Research designData analysisDraftingReview
Contributors
Tomás Reyes (Methodology, Software)
Usage
not used in published research yet · Examples: 6 example studies
Source
Example
Record
template:did-staggered-panel · JSON

Solid tags are declared by the source or mapped from its terms; dashed tags are inferred by a published rule. Hover a tag for its provenance.

Steps

Greyed steps do not run in the selected mode.

  1. 1
    initial
    Plans the paper and dispatches specialists for the literature, data, identification strategy, econometric specification, analysis and drafting.
    strategist
  2. 2
    staggered_timing_check
    If treatment dates vary across units, the specification must use a heterogeneity-robust estimator. Halts otherwise.
    check
  3. 3
    iterative
    Further rounds of the strategist, revisiting design and analysis.
    strategist
  4. 4
    estimation_gate
    Checks the estimation against the specification declared before it ran. Halts the run on failure.
    check
  5. 5
    pre_trend_check
    Estimates leads in an event study and reports the joint test of pre-period coefficients. Records the result; halts when the declared threshold is crossed.
    check
  6. 6
    self_attack
    A specialist attacks the paper's own argument and evidence.
    specialists
  7. 7
    polish
    Five specialists polish formulas, numbers, institutional detail, equilibria and the bibliography.
    specialists, parallel
  8. 8
    review
    Numbers and citations are checked first. Six reviewers (mechanism, technical, literature, data, identification, writing) then score the draft.
    aggregate, parallel
  9. 9
    revision
    Revises the draft in response to the reviews, as a full revision and as targeted edits.
    specialists
  10. 10
    replication
    Builds the replication package.
    specialists

Versions and evaluations

Planned

No versions yet.

Adapt this template Evaluate this template Report a failure
Cite this template
Persistent identifiers planned
@software{e2ercontributors2026e2erstaggereddifferencei,
  title   = {E2ER staggered difference-in-differences (economics) template},
  author  = {E2ER contributors},
  year    = {2026},
  note    = {E2ER template. Persistent identifier planned},
  url     = {https://e2er.org/templates/did-staggered-panel}
}

Checks on this template

  • Output contracts · Every step produced the artifact it declared, in the declared form
    Required of every template.
  • Execution reliability · Analysis code ran and wrote a parseable, non-empty result
    Required of every template.
  • Numbers · Every number in tables and text matches the output of executed code
    Proposed. Proposed for the floor; runs log it but may not block on it.
  • Citations · Every reference resolves to an existing publication via OpenAlex, Semantic Scholar or Crossref
    Proposed. Proposed for the floor; runs log it but may not block on it.
  • Verbatim passages · Every claim about a source points to a passage found word for word in that source
    Proposed. Proposed for the floor; runs log it but may not block on it.

Runs of this template

No runs yet.