Commit fb7a912
Address PR igerber#378 R3 P3 ×2: cell-weighting cross-ref + Step 7b comment scope
P3 igerber#1 (Methodology): qualified the "exact R match" claim across
docstring / REGISTRY / CHANGELOG / R-generator comment / parity test
docstring with a cross-reference to the existing DID^X cell-weighting
deviation (Python's first-stage uses equal cell weights, R weights
by N_gt). The two coincide on one-observation-per-(g,t) panels (the
common cell-aggregated regime that the parity scenario uses). The
multi-observation-per-cell deviation is independent of the by_path
lift and was already documented in REGISTRY's "Note (Phase 3 DID^X
covariate adjustment)".
P3 igerber#2 (Maintainability): narrowed the Step 7b header comment in
chaisemartin_dhaultfoeuille.py:1465-1473 to spell out that DID^X
residualization applies to the per-group multi-horizon path
(event_study_effects, overall_att, joiners/leavers, by_path,
placebos, sup-t bands) but intentionally excludes per_period_effects
which stays on raw outcomes per the existing "Note (Phase 3 DID^X
covariate adjustment)" contract. Documentation-only fix; no runtime
behavior change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d24ae25 commit fb7a912
5 files changed
Lines changed: 37 additions & 16 deletions
File tree
- benchmarks/R
- diff_diff
- docs/methodology
- 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
| 717 | + | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
1467 | 1471 | | |
1468 | 1472 | | |
1469 | 1473 | | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1473 | 1482 | | |
1474 | 1483 | | |
1475 | 1484 | | |
| |||
0 commit comments