File tree Expand file tree Collapse file tree 4 files changed +48
-68
lines changed Expand file tree Collapse file tree 4 files changed +48
-68
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ def test_did_validation_post_treatment_formula():
58
58
formula = "y ~ 1 + group*post_SOMETHING" ,
59
59
time_variable_name = "t" ,
60
60
group_variable_name = "group" ,
61
- treated = 1 ,
62
- untreated = 0 ,
63
61
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
64
62
)
65
63
@@ -91,8 +89,6 @@ def test_did_validation_post_treatment_data():
91
89
formula = "y ~ 1 + group*post_treatment" ,
92
90
time_variable_name = "t" ,
93
91
group_variable_name = "group" ,
94
- treated = 1 ,
95
- untreated = 0 ,
96
92
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
97
93
)
98
94
@@ -124,8 +120,6 @@ def test_did_validation_unit_data():
124
120
formula = "y ~ 1 + group*post_treatment" ,
125
121
time_variable_name = "t" ,
126
122
group_variable_name = "group" ,
127
- treated = 1 ,
128
- untreated = 0 ,
129
123
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
130
124
)
131
125
@@ -157,8 +151,6 @@ def test_did_validation_group_dummy_coded():
157
151
formula = "y ~ 1 + group*post_treatment" ,
158
152
time_variable_name = "t" ,
159
153
group_variable_name = "group" ,
160
- treated = 1 ,
161
- untreated = 0 ,
162
154
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
163
155
)
164
156
Original file line number Diff line number Diff line change @@ -130,8 +130,6 @@ def test_idata_property():
130
130
formula = "y ~ 1 + group + t + group:post_treatment" ,
131
131
time_variable_name = "t" ,
132
132
group_variable_name = "group" ,
133
- treated = 1 ,
134
- untreated = 0 ,
135
133
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
136
134
)
137
135
assert hasattr (result , "idata" )
@@ -157,17 +155,13 @@ def test_result_reproducibility(seed):
157
155
formula = "y ~ 1 + group + t + group:post_treatment" ,
158
156
time_variable_name = "t" ,
159
157
group_variable_name = "group" ,
160
- treated = 1 ,
161
- untreated = 0 ,
162
158
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
163
159
)
164
160
result2 = cp .DifferenceInDifferences (
165
161
df ,
166
162
formula = "y ~ 1 + group + t + group:post_treatment" ,
167
163
time_variable_name = "t" ,
168
164
group_variable_name = "group" ,
169
- treated = 1 ,
170
- untreated = 0 ,
171
165
model = cp .pymc_models .LinearRegression (sample_kwargs = sample_kwargs ),
172
166
)
173
167
assert np .all (result1 .idata .posterior .mu == result2 .idata .posterior .mu )
You can’t perform that action at this time.
0 commit comments