Skip to content

Commit

Permalink
Merge pull request #63 from sdfordham/placebo-test-time-period
Browse files Browse the repository at this point in the history
Remove coerce to integers in PlaceboTest
  • Loading branch information
sdfordham committed May 20, 2024
2 parents 61cc0dc + c0f1bbd commit 81c9abe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pysyncon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,9 @@ def _single_placebo(
"""
scm.fit(dataprep=dataprep, **scm_options)

min_ = int(min(dataprep.foo[dataprep.time_variable]))
max_ = int(max(dataprep.foo[dataprep.time_variable]))

Z0, Z1 = dataprep.make_outcome_mats(time_period=range(min_, max_))
Z0, Z1 = dataprep.make_outcome_mats(
time_period=dataprep.foo[dataprep.time_variable]
)
synthetic = scm._synthetic(Z0=Z0)
gaps = scm._gaps(Z0=Z0, Z1=Z1)
return synthetic.rename(dataprep.treatment_identifier), gaps.rename(
Expand Down

0 comments on commit 81c9abe

Please sign in to comment.