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 e290244 commit 67d550dCopy full SHA for 67d550d
causalpy/data/simulate_data.py
@@ -147,7 +147,9 @@ def generate_time_series_data(
147
for var in ["deaths_actual", "temperature"]:
148
df[var] += norm(0, 0.1).rvs(N)
149
150
- # add intercept
+ # add intercept column of ones (for modeling purposes)
151
+ # This is correctly a column of ones, not beta_intercept, as beta_intercept
152
+ # is already incorporated in the data generation above
153
df["intercept"] = np.ones(df.shape[0])
154
155
return df
0 commit comments