Commit f3c17ff
Fix staggered pre-trends guidance and add with/without covariates example
P1: For staggered designs, replace generic check_parallel_trends() with
CS event-study pre-period inspection. The generic helper assumes a single
binary treatment with universal pre-periods, which is invalid when
cohorts adopt at different times (early-cohort post-treatment observations
contaminate the "pre-trend"). The guide and practitioner_next_steps()
now emit staggered-specific guidance using event_study_effects pre-periods.
P2: Complete example now includes REQUIRED with/without covariates
comparison (was missing despite Step 8 marking it mandatory).
P2: Evaluation doc model-mix caveat added, residual "Step 4" references
changed to "Step 5" to match canonical numbering.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d350850 commit f3c17ff
3 files changed
Lines changed: 72 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
138 | 156 | | |
139 | 157 | | |
140 | 158 | | |
| |||
265 | 283 | | |
266 | 284 | | |
267 | 285 | | |
268 | | - | |
| 286 | + | |
269 | 287 | | |
270 | 288 | | |
271 | 289 | | |
| |||
308 | 326 | | |
309 | 327 | | |
310 | 328 | | |
311 | | - | |
| 329 | + | |
312 | 330 | | |
313 | 331 | | |
314 | 332 | | |
| |||
319 | 337 | | |
320 | 338 | | |
321 | 339 | | |
322 | | - | |
| 340 | + | |
323 | 341 | | |
324 | 342 | | |
325 | 343 | | |
| |||
330 | 348 | | |
331 | 349 | | |
332 | 350 | | |
333 | | - | |
| 351 | + | |
334 | 352 | | |
335 | 353 | | |
336 | 354 | | |
| |||
341 | 359 | | |
342 | 360 | | |
343 | 361 | | |
344 | | - | |
| 362 | + | |
345 | 363 | | |
346 | 364 | | |
347 | 365 | | |
| |||
423 | 441 | | |
424 | 442 | | |
425 | 443 | | |
426 | | - | |
| 444 | + | |
427 | 445 | | |
428 | 446 | | |
429 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
85 | 84 | | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
| |||
390 | 408 | | |
391 | 409 | | |
392 | 410 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
401 | 417 | | |
402 | 418 | | |
403 | 419 | | |
| |||
416 | 432 | | |
417 | 433 | | |
418 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
419 | 443 | | |
420 | 444 | | |
421 | 445 | | |
| |||
437 | 461 | | |
438 | 462 | | |
439 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
440 | 470 | | |
441 | 471 | | |
442 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | | - | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
0 commit comments