One coefficient. Two decompositions.

Follow the note step by step, or explore any design.

    What to look for

    Treatment effects

    You set the true effects; the design fixes the weights.

    TWFE β̂fe—Both decompositions sum to this
    ATT—Effects weighted by Ng,t/N1
    TWFE − ATT—

    Data

    Observed group-period means

    Two decompositions

    Two weighted sums. The same TWFE coefficient.

    Goodman-Bacon

    Weights on 2 × 2 DiDs

    β̂fe =—
    ComparisonWeight × DiDContribution

    dCDH

    Weights on effects in treated cells

    β̂fe =—
    Cell effectWeight × effectContribution

    Diagnostics

    Summaries like those of bacondecomp and twowayfeweights

    Goodman-Bacon weight by comparison type

    dCDH cell weights

    These numbers show how exposed TWFE is to changing effects. Neither proves bias. What to do in practice →

    Inspect a comparison or cell