You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P1 (Methodology): the prior commit's "arbitrary ordered labels" contract
was unreachable on TwoWayFixedEffects because TWFE's design step builds
`_treatment_post = treated * time` from raw column values, which fails
on datetime64 / pd.Period / string labels. Narrowing the docs to make
explicit that the non-numeric-label contract is MultiPeriodDiD-only (MPD
builds period dummies, not a `treated * time` product). TWFE inherits
its pre-existing numeric-time constraint.
- llms-full.txt: split the panel example into a TWFE block (binary post
indicator only, `conley_lag_cutoff=1`) and an MPD block (multi-period
time, arbitrary orderable encoding). New caveat paragraph spells out
the TWFE numeric-time constraint.
- test_twfe_conley_non_numeric_time_fails: TWFE + string-encoded time
raises a clean error (string * int multiplication fails inside the
estimator) — regression for the narrowed contract.
P1 (Maintainability): `conley_lag_cutoff` is a new public parameter that
materially changes vcov semantics (0 = spatial only, >0 = adds within-
unit Bartlett serial HAC), but the result objects didn't expose it.
- DiDResults + MultiPeriodDiDResults: new `conley_lag_cutoff: Optional[int]`
field threaded through the estimator-side construction.
- `_format_vcov_label` now includes `lag_cutoff=<int>` in the Conley
label so summary() readers can tell which Conley variant produced
the reported SEs (e.g. "Conley spatial HAC (1999), lag_cutoff=1").
- TestConleyTWFE summary test asserts both the label format and the
programmatic `res.conley_lag_cutoff` accessor.
P3 (Doc/test): MPD docstring claimed `inference="wild_bootstrap"` + conley
raises but only TWFE had that guard. Added the explicit raise in MPD.fit()
to match the documented contract.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments