@@ -160,13 +160,13 @@ def test_generalize_conf(self, df_iptw):
160
160
aipw .weight_model ('L + W_sq' , print_results = False )
161
161
aipw .outcome_model ('A + L + L:A + W_sq + W_sq:A + W_sq:A:L' , print_results = False )
162
162
aipw .fit ()
163
- npt .assert_allclose (aipw .risk_difference , 0.043744 , atol = 1e-5 )
164
- npt .assert_allclose (aipw .risk_ratio , 1.131651 , atol = 1e-4 )
163
+ npt .assert_allclose (aipw .risk_difference , 0.048129 , atol = 1e-5 )
164
+ npt .assert_allclose (aipw .risk_ratio , 1.146787 , atol = 1e-4 )
165
165
166
166
def test_transport_conf (self , df_iptw ):
167
- aipw = AIPSW (df_iptw , exposure = 'A' , outcome = 'Y' , selection = 'S' , generalize = True , weights = 'iptw' )
167
+ aipw = AIPSW (df_iptw , exposure = 'A' , outcome = 'Y' , selection = 'S' , generalize = False , weights = 'iptw' )
168
168
aipw .weight_model ('L + W_sq' , print_results = False )
169
169
aipw .outcome_model ('A + L + L:A + W_sq + W_sq:A + W_sq:A:L' , print_results = False )
170
170
aipw .fit ()
171
- npt .assert_allclose (aipw .risk_difference , 0.043744 , atol = 1e-5 )
172
- npt .assert_allclose (aipw .risk_ratio , 1.131651 , atol = 1e-4 )
171
+ npt .assert_allclose (aipw .risk_difference , 0.041407 , atol = 1e-5 )
172
+ npt .assert_allclose (aipw .risk_ratio , 1.120556 , atol = 1e-4 )
0 commit comments