Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaza committed Dec 11, 2024
1 parent eb6db31 commit 9085b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiment_utils/experiment_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
instrument_col: str = None,
alpha: float = 0.05,
regression_covariates: List = None,
assess_overlap=False):
assess_overlap=False):

"""
Initialize ExperimentAnalyzer
Expand Down Expand Up @@ -176,7 +176,7 @@ def __create_formula(self, outcome_variable, type: str = 'regression'):
"""

formula_dict = {
'regression': f"{outcome_variable} ~ {self.treatment_col}",
'regression': f"{outcome_variable} ~ 1 + {self.treatment_col}",
'iv': f"{outcome_variable} ~ 1 + [{self.treatment_col} ~ {self.instrument_col}]"
}
reg_covs = list(set(self.final_covariates) & set(self.regression_covariates))
Expand Down

0 comments on commit 9085b5e

Please sign in to comment.