Commit e754b04
Fix round-3 review P1s: DDD double-weighting, CS WIF scaling, CS covariate nuisance IF
- TripleDifference: remove double-weighting in IPW/DR moment corrections —
since Riesz representers already incorporate survey weights, moment means
use np.mean() not np.average(weights=). Removed _wmean_ax0 helper.
- CallawaySantAnna WIF: apply s_i symmetrically to both indicator and pg terms
in the weighted share estimator IF. Normalize by total_weight (sum of survey
weights) instead of n_units.
- CallawaySantAnna outcome regression covariate IF: add weighted regression
nuisance IF correction (asymptotic linear representation of beta from WLS,
projected onto weighted treated covariate mean). IPW and DR IFs unchanged
(IPW matches unweighted structure; DR is self-correcting per Theorem 3.1).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ae6b278 commit e754b04
3 files changed
Lines changed: 70 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1594 | 1617 | | |
1595 | 1618 | | |
1596 | | - | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
1597 | 1622 | | |
1598 | 1623 | | |
1599 | 1624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| |||
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
359 | 364 | | |
360 | 365 | | |
361 | | - | |
| 366 | + | |
362 | 367 | | |
363 | 368 | | |
364 | 369 | | |
| |||
386 | 391 | | |
387 | 392 | | |
388 | 393 | | |
389 | | - | |
390 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1352 | 1342 | | |
1353 | 1343 | | |
1354 | 1344 | | |
| |||
1616 | 1606 | | |
1617 | 1607 | | |
1618 | 1608 | | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
| 1609 | + | |
| 1610 | + | |
1625 | 1611 | | |
1626 | | - | |
| 1612 | + | |
1627 | 1613 | | |
1628 | 1614 | | |
1629 | 1615 | | |
1630 | 1616 | | |
1631 | | - | |
| 1617 | + | |
1632 | 1618 | | |
1633 | 1619 | | |
1634 | 1620 | | |
| |||
1653 | 1639 | | |
1654 | 1640 | | |
1655 | 1641 | | |
1656 | | - | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1657 | 1645 | | |
1658 | 1646 | | |
1659 | 1647 | | |
1660 | 1648 | | |
1661 | 1649 | | |
1662 | 1650 | | |
1663 | 1651 | | |
1664 | | - | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1665 | 1655 | | |
1666 | 1656 | | |
1667 | 1657 | | |
| |||
1671 | 1661 | | |
1672 | 1662 | | |
1673 | 1663 | | |
1674 | | - | |
| 1664 | + | |
1675 | 1665 | | |
1676 | 1666 | | |
1677 | 1667 | | |
1678 | 1668 | | |
1679 | | - | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1680 | 1673 | | |
1681 | 1674 | | |
1682 | 1675 | | |
| |||
1704 | 1697 | | |
1705 | 1698 | | |
1706 | 1699 | | |
1707 | | - | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
1708 | 1703 | | |
1709 | 1704 | | |
1710 | 1705 | | |
1711 | 1706 | | |
1712 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1713 | 1710 | | |
1714 | 1711 | | |
1715 | 1712 | | |
| |||
0 commit comments