Commit b23aca4
SpilloverDiD: address review polish — REGISTRY notes + rank_deficient_action guard
- REGISTRY: add "Note (anticipation shift)" documenting the public
`anticipation: int` parameter's effect on both treatment and ring-
membership clocks. Matches the implementation semantics at
spillover.py:850-854 + 1441-1544, and mirrors TwoStageDiD's
anticipation parameter convention.
- REGISTRY: narrow the "correctness anchored on reduce-to-TWFE /
reduce-to-TwoStageDiD limits" claim. Only the reduce-to-TWFE limit
shipped (the 20-seed Gardner identity bit-identity test at
TestSpilloverDiDNonStaggeredFEEquivalence). The reduce-to-TwoStageDiD
limit was scoped during planning but not shipped — the Omega_0
stricter subsample requires fixture work to align with TwoStageDiD's
{D_it = 0} subsample. Queued as a follow-up.
- spillover.py: add `rank_deficient_action` constructor guard mirroring
two_stage.py:149-153 and stacked_did.py. Bad values now fail at
__init__ with a clear ValueError instead of deep inside solve_ols.
- tests: new TestSpilloverDiDRankDeficientActionValidation class
exercising 6 invalid values + 3 valid values.
148 tests pass (was 139); black + ruff clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6f3ade4 commit b23aca4
3 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
902 | 907 | | |
903 | 908 | | |
904 | 909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2969 | 2969 | | |
2970 | 2970 | | |
2971 | 2971 | | |
2972 | | - | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
2973 | 2975 | | |
2974 | 2976 | | |
2975 | 2977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2072 | 2072 | | |
2073 | 2073 | | |
2074 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2075 | 2100 | | |
2076 | 2101 | | |
2077 | 2102 | | |
| |||
0 commit comments