We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17f5c9 commit 9941c02Copy full SHA for 9941c02
causalpy/experiments/diff_in_diff.py
@@ -116,7 +116,7 @@ def __init__(
116
self.y = xr.DataArray(
117
self.y[:, 0],
118
dims=["obs_ind"],
119
- coords={"obs_ind": self.data.index},
+ coords={"obs_ind": np.arange(self.y.shape[0])},
120
)
121
122
# fit model
@@ -200,10 +200,10 @@ def __init__(
200
201
elif isinstance(self.model, RegressorMixin):
202
# This is the coefficient on the interaction term
203
- # TODO: THIS IS NOT YET CORRECT ?????
+ # TODO: CHECK FOR CORRECTNESS
204
self.causal_impact = (
205
self.y_pred_treatment[1] - self.y_pred_counterfactual[0]
206
- )[0]
+ )
207
else:
208
raise ValueError("Model type not recognized")
209
0 commit comments