Conversation
Design spec for integrating Stata jwdid (Wooldridge 2021/2023 ETWFE) into diff-diff as a standalone WooldridgeDiD estimator with linear and nonlinear support. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Specify correct within_transform location (diff_diff.utils, not linalg) - Fix logit FE: explicit drop_first dummies to avoid solve_logit intercept collision - Add complete solve_poisson() spec with signature, clipping, convergence behavior - Add full delta method gradient vector for nonlinear ASF SEs - Fix REGISTRY deviation label to use recognized "- **Note:**" format - Clarify control-group observation filter for anticipation - Fix "constrained to zero" → "not estimated (cells excluded)" - Add _demeaned suffix tracking note for within_transform - Align ETWFE alias across Sections 2 and 8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d delta-method SEs
Implement Wooldridge (2021/2023) ETWFE with OLS, Poisson, Logit paths. Matches Stata jwdid output. Add tutorial notebook.
|
Thanks for this contribution — the Wooldridge ETWFE estimator fills a real gap in the library. The nonlinear outcome support (logit/Poisson via the ASF approach) is something we've had on our roadmap, and this is the right paper to implement it from. I've done an independent review of Wooldridge (2023) against your implementation. The REGISTRY.md section is solid overall, but there are items that need to be addressed before we can move forward. Files to remove
PR template Please fill in the methodology references, validation, and security fields in the PR description. Methodology notes from paper review I did an independent review of Wooldridge (2023) and have a few items to flag:
Validation Additionally, a test comparing OLS ETWFE ATT(g,t) to CallawaySantAnna ATT(g,t) on the same dataset would be valuable, since they should be approximately equivalent under linear PT with never-treated controls. Code conventions
Happy to answer questions on any of this. This is a meaningful contribution and we want to make sure it lands well. |
Methodology references (required if estimator / math changes)
Validation
Security / privacy