Commit 6fb44e6
Address PR #376 R11 P3 (HAD.fit weights= deprecation message)
R11 P3 (informational): HAD.fit's `weights=` deprecation message used the
shared HAD_DEPRECATION_MSG_WEIGHTS_KWARG_DATA_IN constant, which suggests
migrating to `survey_design=SurveyDesign(weights='col_name')`. On the
workflow + joint data-in wrappers that migration is inference-equivalent
(both go through _resolve_pretest_unit_weights to per-unit weights, then
through the shared Stute / Yatchew kernels). On HAD.fit it is NOT
inference-equivalent today: the deprecated `weights=arr` shortcut keeps
`variance_formula="pweight"` / `"pweight_2sls"` (CCT-2014 weighted-robust
/ 2SLS pweight-sandwich), while `survey_design=SurveyDesign(weights=col)`
composes Binder-TSL (`"survey_binder_tsl"` / `"survey_binder_tsl_2sls"`).
Following the migration changes the SE family — the long-term unification
is tracked in TODO row 102 for the next minor.
Fix: add a HAD.fit-specific HAD_DEPRECATION_MSG_WEIGHTS_KWARG_HAD_FIT
constant that says the long-term API is still survey_design= but
explicitly notes the SE-family caveat applies in the current release.
HAD.fit consumes this new constant; the workflow + joint wrappers keep
the original HAD_DEPRECATION_MSG_WEIGHTS_KWARG_DATA_IN (no SE-family
divergence on those surfaces).
561 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 236bdce commit 6fb44e6
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
2927 | 2927 | | |
2928 | 2928 | | |
2929 | 2929 | | |
2930 | | - | |
| 2930 | + | |
2931 | 2931 | | |
2932 | 2932 | | |
2933 | 2933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
788 | 810 | | |
789 | 811 | | |
790 | 812 | | |
| |||
0 commit comments