Repository navigation
Commit 41a323e
R2 local Codex polish: pin the SAME compound contrast as the R fixture
Local Codex R2 returned ✅ with 1 substantive P3: the new MPD parity
test was fitting MPD without an explicit `post_periods=` argument, so
MPD's default "last half of periods" rule selected `[3, 4]` on the
4-period fixture while the R generator defines the parity contrast
over `[2, 3, 4]` (per `post_interaction_names` in the JSON). The
Satterthwaite DOFs happened to coincide here (~8.1) which masked the
estimand mismatch — the test would have stayed green if MPD silently
fit the wrong contrast.
Fix: derive `post_periods` from the golden JSON's
`post_interaction_names` field and pass it explicitly to MPD.fit().
The test now asserts that MPD computes `avg_att` over the exact same
contrast vector R uses for the Wald_test DOF target.
This makes the test a genuine estimand-level parity pin rather than
just a DOF-magnitude smell check.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 96ce1c5 commit 41a323e
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
585 | 594 | | |
586 | 595 | | |
587 | 596 | | |
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
591 | 600 | | |
| 601 | + | |
592 | 602 | | |
593 | 603 | | |
594 | 604 | | |
| |||
0 commit comments