Commit 5c836c5
Drop overstated Bartlett PSD claim; apply indefiniteness guard to both kernels
Address CI Codex review of PR #411 (P1 + P3):
P1 — The implementation called the radial 1-D Bartlett kernel
"PSD-guaranteed" by citing Conley 1999 Eq 3.14 + Andrews 1991. Conley's
explicit PSD Bartlett formula (Eq 3.14, page 12) is the 2-D separable
product window `(1 - |j|/L_M)(1 - |k|/L_N)` indexed on a lattice; the
1-D radial form on pairwise distance that diff-diff and R `conleyreg`
implement is a practitioner specialization (Hsiang 2010, Colella et
al. 2019) that is not explicitly written in the paper and is therefore
not formally PSD-guaranteed. Reframe the kernel docstring around the
practitioner-specialization framing, drop the PSD-guaranteed claim, and
lift the meat-eigenvalue PSD guard out of the uniform-only branch so
it fires for both supported kernels. The warning message now names
the active kernel and explicitly states neither radial form is
formally PSD. New regression test
test_indefinite_meat_warning_fires_for_bartlett locks the lifted guard
by patching `_bartlett_kernel` to return an aggressively indefinite
matrix and asserting the warning surfaces with the kernel name.
P3 — Stale wording cleanup:
- conley.py:128-132 missing-coords error message pointed at
TwoWayFixedEffects(conley_coords=...) even though TWFE rejects
Conley in Phase 1; redirect to LinearRegression / compute_robust_vcov.
- TestConleyEstimatorIntegration class docstring claimed panel
estimators accept Conley and print a label; rewrote to describe
fit-time panel rejection.
Doc surfaces (REGISTRY ConleySpatialHAC kernel section, llms-full.txt
kernels block, CHANGELOG `conley_kernel` description, conley-1999-
review.md PSD-failure note) updated to reflect the both-kernels guard
and the radial-specialization framing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4444375 commit 5c836c5
6 files changed
Lines changed: 130 additions & 31 deletions
File tree
- diff_diff
- guides
- docs/methodology
- papers
- 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 | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
| |||
99 | 107 | | |
100 | 108 | | |
101 | 109 | | |
102 | | - | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
131 | | - | |
132 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
209 | 219 | | |
210 | 220 | | |
211 | 221 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
215 | 229 | | |
216 | 230 | | |
217 | 231 | | |
| |||
243 | 257 | | |
244 | 258 | | |
245 | 259 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
258 | 279 | | |
259 | 280 | | |
260 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | | - | |
1922 | | - | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1923 | 1925 | | |
1924 | 1926 | | |
1925 | 1927 | | |
| |||
0 commit comments