Skip to content

Commit

Permalink
Merge pull request #275 from rlaker/prepost
Browse files Browse the repository at this point in the history
changed splitting behaviour for PrePostFit
  • Loading branch information
drbenvincent authored Dec 22, 2023
2 parents c17fcf2 + 0c3f23d commit fc28a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions causalpy/pymc_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def __init__(
# set experiment type - usually done in subclasses
self.expt_type = "Pre-Post Fit"
# split data in to pre and post intervention
self.datapre = data[data.index <= self.treatment_time]
self.datapost = data[data.index > self.treatment_time]
self.datapre = data[data.index < self.treatment_time]
self.datapost = data[data.index >= self.treatment_time]

self.formula = formula

Expand Down
4 changes: 2 additions & 2 deletions causalpy/skl_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def __init__(
super().__init__(model=model, **kwargs)
self.treatment_time = treatment_time
# split data in to pre and post intervention
self.datapre = data[data.index <= self.treatment_time]
self.datapost = data[data.index > self.treatment_time]
self.datapre = data[data.index < self.treatment_time]
self.datapost = data[data.index >= self.treatment_time]

self.formula = formula

Expand Down

0 comments on commit fc28a3b

Please sign in to comment.