Skip to content

Commit cb31ee2

Browse files
authored
add jax demeaning integration tests (#783)
1 parent 020f976 commit cb31ee2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test_vs_fixest.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def check_relative_diff(x1, x2, tol, msg=None):
198198
@pytest.mark.parametrize("fml", ols_fmls + ols_but_not_poisson_fml)
199199
@pytest.mark.parametrize("adj", [True])
200200
@pytest.mark.parametrize("cluster_adj", [True])
201+
@pytest.mark.parametrize("demeaner_backend", ["numba", "jax"])
201202
def test_single_fit_feols(
202203
data_feols,
203204
dropna,
@@ -207,6 +208,7 @@ def test_single_fit_feols(
207208
fml,
208209
adj,
209210
cluster_adj,
211+
demeaner_backend,
210212
):
211213
global test_counter_feols
212214
test_counter_feols += 1
@@ -234,7 +236,14 @@ def test_single_fit_feols(
234236

235237
r_inference = _get_r_inference(inference)
236238

237-
mod = pf.feols(fml=fml, data=data, vcov=inference, weights=weights, ssc=ssc_)
239+
mod = pf.feols(
240+
fml=fml,
241+
data=data,
242+
vcov=inference,
243+
weights=weights,
244+
ssc=ssc_,
245+
demeaner_backend=demeaner_backend,
246+
)
238247
if weights is not None:
239248
r_fixest = fixest.feols(
240249
ro.Formula(r_fml),

0 commit comments

Comments
 (0)