Commit 1166024
Fix weighted-mass IF linearization in ContinuousDiD and TripleDifference from PR #226 review (round 3)
- ContinuousDiD: store survey-weighted treated/control masses and
weighted dpsi_bar in bootstrap_info; use weighted masses for p_1, p_0,
n_total in IF construction so TSL linearizes the weighted estimator
- TripleDifference: use survey-weighted subgroup mass (sum(w_sub))
instead of raw counts (n_sub) for pairwise IF combination weights
w3, w2, w1 when survey design is active
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bb3b64a commit 1166024
2 files changed
Lines changed: 34 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
611 | 615 | | |
612 | 616 | | |
613 | 617 | | |
| |||
972 | 976 | | |
973 | 977 | | |
974 | 978 | | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
975 | 985 | | |
976 | 986 | | |
977 | 987 | | |
978 | 988 | | |
979 | 989 | | |
| 990 | + | |
980 | 991 | | |
981 | 992 | | |
982 | 993 | | |
| |||
993 | 1004 | | |
994 | 1005 | | |
995 | 1006 | | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
996 | 1012 | | |
997 | 1013 | | |
998 | 1014 | | |
| |||
1080 | 1096 | | |
1081 | 1097 | | |
1082 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1083 | 1103 | | |
1084 | 1104 | | |
1085 | 1105 | | |
1086 | 1106 | | |
| 1107 | + | |
1087 | 1108 | | |
1088 | 1109 | | |
1089 | | - | |
1090 | 1110 | | |
1091 | 1111 | | |
1092 | 1112 | | |
| |||
1119 | 1139 | | |
1120 | 1140 | | |
1121 | 1141 | | |
1122 | | - | |
1123 | 1142 | | |
1124 | 1143 | | |
1125 | 1144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1034 | 1041 | | |
1035 | 1042 | | |
1036 | 1043 | | |
| |||
0 commit comments