Skip to content

Commit

Permalink
add jax demeaning integration tests (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3alfisc authored Jan 8, 2025
1 parent 020f976 commit cb31ee2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_vs_fixest.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def check_relative_diff(x1, x2, tol, msg=None):
@pytest.mark.parametrize("fml", ols_fmls + ols_but_not_poisson_fml)
@pytest.mark.parametrize("adj", [True])
@pytest.mark.parametrize("cluster_adj", [True])
@pytest.mark.parametrize("demeaner_backend", ["numba", "jax"])
def test_single_fit_feols(
data_feols,
dropna,
Expand All @@ -207,6 +208,7 @@ def test_single_fit_feols(
fml,
adj,
cluster_adj,
demeaner_backend,
):
global test_counter_feols
test_counter_feols += 1
Expand Down Expand Up @@ -234,7 +236,14 @@ def test_single_fit_feols(

r_inference = _get_r_inference(inference)

mod = pf.feols(fml=fml, data=data, vcov=inference, weights=weights, ssc=ssc_)
mod = pf.feols(
fml=fml,
data=data,
vcov=inference,
weights=weights,
ssc=ssc_,
demeaner_backend=demeaner_backend,
)
if weights is not None:
r_fixest = fixest.feols(
ro.Formula(r_fml),
Expand Down

0 comments on commit cb31ee2

Please sign in to comment.