Commit cb3f815
Refactor RC IFs to R's psi convention, fix HonestDiD VCV subsetting
Restructure _outcome_regression_rc, _ipw_estimation_rc, _doubly_robust_rc
to compute leading IF terms in R's unnormalized psi convention (using
mean_w_* = sum_w_*/n_all normalizers matching R's mean()), then convert
to library phi = psi/n_all at the boundary. Makes DRDID correspondence
explicit with R variable name comments.
Fix HonestDiD event_study_vcov subsetting: when filtering NaN-SE event
times, subset the VCV matrix to match the surviving rel_times (was using
the full unfiltered matrix, causing dimension mismatch on interior drops).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c2f8fdc commit cb3f815
2 files changed
Lines changed: 237 additions & 163 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
668 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
669 | 677 | | |
670 | 678 | | |
671 | 679 | | |
| |||
0 commit comments