Skip to content

Commit

Permalink
bug fix with string name
Browse files Browse the repository at this point in the history
Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>
  • Loading branch information
rahulbshrestha committed May 14, 2024
1 parent dc1f6c2 commit 4c635cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def estimate_effect(
atc = 0
numcontrolunits = control.shape[0]

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

Expand Down

0 comments on commit 4c635cd

Please sign in to comment.