Commit ed7d5e2
Address PR #440 R1 CI review (2 P1 + 1 P3)
P1 #1 — T22 §3 prose contradicted the implementation. Said the
analytical local-linear at d_lower "does not consume the survey
weights in the slope". The weighted continuous path
(diff_diff/had.py:3744-3810) consumes weights in (a) the local-
linear `tau_bc` boundary fit, (b) the numerator
`np.average(dy_arr, weights=weights_arr)`, AND (c) the denominator
`np.average(d_reg, weights=weights_arr)`. Rewrote §3 to say the two
ATTs are close on this DGP because the weight CV (~0.30) and the
dose-distribution shape do not co-vary strongly enough to shift the
boundary slope materially — NOT because weights are ignored.
Added two drift tests for the weighted point-estimation contract:
`test_survey_att_differs_from_naive_att` (sign-only — if weights
were ignored the values would be bit-identical) and
`test_survey_att_matches_weighted_denominator_contract` (verifies
the algebraic identity `att = (dy_mean_w - tau_bc) / den_w` from
`_fit_continuous`).
P1 #2 — T22 §7 leadership block conflated overall and event-study
pretest paths. Said "all three linearity diagnostics", "Yatchew-HR
fails-to-reject under both null modes" (T22 doesn't run the side
panel — that's T21), and quoted the overall-path verdict string
while describing event-study joint diagnostics. Split the
methodologist write-up by path: overall = `Stute + Yatchew`;
event-study = `joint pre-trends + joint linearity` with explicit
`report.yatchew is None` and `report.stute is None` callouts.
Added three drift tests to lock the per-path workflow surfaces:
`test_overall_report_pretrends_joint_is_none` (overall has no
joint diagnostics), `test_event_study_report_stute_and_yatchew_are_none`
(event-study has no single-horizon Stute or Yatchew), and
`test_overall_and_event_study_verdict_prefixes_distinct` (the two
paths share `_QUG_DEFERRED_SUFFIX` but have distinct verdict
prefixes; locks the §7 prose against re-conflating).
P3 — CHANGELOG L11 claimed `diff_diff/guides/llms-full.txt` got a
T22 inventory entry; the file was intentionally scoped out per the
plan-review feedback (would expand scope beyond T22 to T17-T21
backfill). Updated the closer to reflect the actual scope and flag
llms-full.txt as a follow-up.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1eabce5 commit ed7d5e2
3 files changed
Lines changed: 151 additions & 18 deletions
File tree
- docs/tutorials
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments