Skip to content

Commit

Permalink
added todo comment
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Shrestha <rahulshrestha0101@gmail.com>
  • Loading branch information
rahulbshrestha committed May 12, 2024
1 parent 804bf95 commit 006cfc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def estimate_effect(

outcome_variable = self._target_estimand.outcome_variable[0]
treated_outcomes = treated[outcome_variable]
control_outcomes = [control.iloc[i][outcome_variable].item() for i in indices]
control_outcomes = [control.iloc[i][outcome_variable].item() for i in indices] #TODO: Further vectorize this

att = np.mean(treated_outcomes - control_outcomes)

Expand All @@ -156,7 +156,7 @@ def estimate_effect(

outcome_variable = self._target_estimand.outcome_variable[0].item()
control_outcome = control[outcome_variable]
treated_outcome = [treated.iloc[i][outcome_variable].item() for i in indices]
treated_outcome = [treated.iloc[i][outcome_variable].item() for i in indices] # TODO: Further vectorize this

atc = np.mean(treated_outcome - control_outcome)

Expand Down

0 comments on commit 006cfc6

Please sign in to comment.