Skip to content

Commit c6f9d31

Browse files
committed
Cleaned estimators a bit
1 parent 790c12b commit c6f9d31

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

causal_testing/testing/estimators.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ def estimate_control_treatment(self, adjustment_config: dict = None) -> tuple[pd
424424
model = self._run_linear_regression()
425425

426426
x = pd.DataFrame(columns=self.df.columns)
427-
x[self.treatment] = [self.treatment_value, self.control_value]
428427
x["Intercept"] = 1 # self.intercept
429428
for k, v in adjustment_config.items():
430429
x[k] = v
@@ -436,12 +435,9 @@ def estimate_control_treatment(self, adjustment_config: dict = None) -> tuple[pd
436435
x = pd.get_dummies(x, columns=[col], drop_first=True)
437436
x = x[model.params.index]
438437

439-
# This is a hack for "I(...)" equations
440438
x[self.treatment] = [self.treatment_value, self.control_value]
441439

442440
y = model.get_prediction(x).summary_frame()
443-
print("=== Y ===")
444-
print(y)
445441

446442
return y.iloc[1], y.iloc[0]
447443

0 commit comments

Comments
 (0)