Commit 4147406
committed
Fix CI review R6: warning gate on eligible groups + docstring updates
Addresses PR #311 AI review R6 (2 × P3 cleanups).
P3 #1: Warning gate was computed from raw positive-weight groups,
not the post-filter eligible-group set used to build the bootstrap
PSU map. Panels where upstream dCDH filtering drops groups that
share PSUs with kept groups could emit a misleading "PSU coarser
than group" warning even when the effective bootstrap is one group
per PSU.
Fix: count PSUs and groups from `_eligible_group_ids` (the same set
feeding `group_id_to_psu_code_bootstrap`), preserving the within-
group-constant-PSU invariant by taking each eligible group's first
positive-weight PSU label.
P3 #2: Two docstrings said the bootstrap is "clustered at the group
level" only — now incomplete after the PSU-level survey path:
- `diff_diff/chaisemartin_dhaultfoeuille.py` class docstring:
extended to note PSU-level Hall-Mammen wild clustering under
`survey_design` with coarser PSU.
- `diff_diff/chaisemartin_dhaultfoeuille_bootstrap.py` module
docstring: documents the identity-map fast path (auto-inject
`psu=group`), the PSU-level broadcast when PSU is strictly
coarser, and points to REGISTRY.md for the full contract.
Full regression: 318 passing.1 parent abdfea4 commit 4147406
2 files changed
Lines changed: 44 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| |||
1970 | 1973 | | |
1971 | 1974 | | |
1972 | 1975 | | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1973 | 1982 | | |
1974 | 1983 | | |
1975 | 1984 | | |
1976 | 1985 | | |
1977 | 1986 | | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
1982 | | - | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
1983 | 2009 | | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
1990 | 2010 | | |
1991 | 2011 | | |
1992 | 2012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
0 commit comments