Commit 433343c
committed
Fix statsmodels causal inference reference: use real TreatmentEffect API
The treatment-effects example imported statsmodels.treatment.propensity_score,
which does not exist, and labeled plain propensity score estimation as
propensity score matching. Replace it with the actual TreatmentEffect API
(IPW, RA, AIPW), keep score estimation as a separate diagnostic snippet,
and add brief estimand/overlap/balance caveats. Verified against
statsmodels 0.14.6. Bump skill version to 1.3.1 parent cc37669 commit 433343c
2 files changed
Lines changed: 33 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
| 811 | + | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
| 814 | + | |
| 815 | + | |
815 | 816 | | |
816 | | - | |
817 | | - | |
818 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
819 | 821 | | |
820 | | - | |
821 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
822 | 830 | | |
823 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
824 | 849 | | |
825 | 850 | | |
826 | 851 | | |
| |||
0 commit comments