@@ -158,11 +158,7 @@ def _return_causal_test_results(self, estimate_type, estimator, causal_test_case
158
158
159
159
cates_df , confidence_intervals = estimator .estimate_cates ()
160
160
causal_test_result = CausalTestResult (
161
- treatment = estimator .treatment ,
162
- outcome = estimator .outcome ,
163
- treatment_value = estimator .treatment_value ,
164
- control_value = estimator .control_value ,
165
- adjustment_set = estimator .adjustment_set ,
161
+ estimator = estimator ,
166
162
test_value = TestValue ("ate" , cates_df ),
167
163
effect_modifier_configuration = causal_test_case .effect_modifier_configuration ,
168
164
confidence_intervals = confidence_intervals ,
@@ -171,11 +167,7 @@ def _return_causal_test_results(self, estimate_type, estimator, causal_test_case
171
167
logger .debug ("calculating risk_ratio" )
172
168
risk_ratio , confidence_intervals = estimator .estimate_risk_ratio ()
173
169
causal_test_result = CausalTestResult (
174
- treatment = estimator .treatment ,
175
- outcome = estimator .outcome ,
176
- treatment_value = estimator .treatment_value ,
177
- control_value = estimator .control_value ,
178
- adjustment_set = estimator .adjustment_set ,
170
+ estimator = estimator ,
179
171
test_value = TestValue ("risk_ratio" , risk_ratio ),
180
172
effect_modifier_configuration = causal_test_case .effect_modifier_configuration ,
181
173
confidence_intervals = confidence_intervals ,
@@ -184,11 +176,7 @@ def _return_causal_test_results(self, estimate_type, estimator, causal_test_case
184
176
logger .debug ("calculating ate" )
185
177
ate , confidence_intervals = estimator .estimate_ate ()
186
178
causal_test_result = CausalTestResult (
187
- treatment = estimator .treatment ,
188
- outcome = estimator .outcome ,
189
- treatment_value = estimator .treatment_value ,
190
- control_value = estimator .control_value ,
191
- adjustment_set = estimator .adjustment_set ,
179
+ estimator = estimator ,
192
180
test_value = TestValue ("ate" , ate ),
193
181
effect_modifier_configuration = causal_test_case .effect_modifier_configuration ,
194
182
confidence_intervals = confidence_intervals ,
@@ -199,11 +187,7 @@ def _return_causal_test_results(self, estimate_type, estimator, causal_test_case
199
187
logger .debug ("calculating ate" )
200
188
ate , confidence_intervals = estimator .estimate_ate_calculated ()
201
189
causal_test_result = CausalTestResult (
202
- treatment = estimator .treatment ,
203
- outcome = estimator .outcome ,
204
- treatment_value = estimator .treatment_value ,
205
- control_value = estimator .control_value ,
206
- adjustment_set = estimator .adjustment_set ,
190
+ estimator = estimator ,
207
191
test_value = TestValue ("ate" , ate ),
208
192
effect_modifier_configuration = causal_test_case .effect_modifier_configuration ,
209
193
confidence_intervals = confidence_intervals ,
0 commit comments