Commit a673167
committed
feat(did): validate staggered + sensitivity path on mpdta; ship validated HonestDiD recipe
End-to-end validation of the staggered path (did::mpdta, the canonical CS example) with his defaults:
- att_gt (notyettreated/dr/universal/bootstrap+cband) → Overall ATT -0.0323 (his default); nevertreated -0.0328 matches the did vignette ~-0.031; event study is the canonical pattern; ggdid plots.
- HonestDiD relative-magnitudes sensitivity runs via the direct path; didFF p=0.998.
2nd real bug fixed: honest_did() is a NON-exported internal S3 method in HonestDiD 0.2.8 (bare call errors). Skill now ships the validated direct recipe (createSensitivityResults_relativeMagnitudes with betahat + IF-based sigma from aggte(dynamic)).
Verdict: pipeline validated end-to-end on real data (2x2 to 1e-14 + staggered+sensitivity), driving his packages, 2 real bugs found-by-running and fixed. Open: contdid path + a strict R↔Stata 1e-6 staggered cross-check.1 parent b02dff6 commit a673167
2 files changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments