Skip to content

fepois not honoring demean_backend? #852

Open
@christian-wilson

Description

@christian-wilson

I had been dealing with some issues where Numba failed while running fepois, so I thought using jax might solve the issue. However, when switching the demean backend, nothing seemed to change.

It seems like fepois uses the demean function from pyfixest.estimation.demean_, which only uses numba. I believe that in order for jax to be used, this should be demean_model?

New here, and my first issue, so could very much be wrong on this. Just basing this off of my experience and looking at this code in fepois_.py:

from `pyfixest.estimation.demean_ import demean

and inside the get_fit function

if _fe is not None:
    # ZX_resid = algorithm.residualize(ZX, mu)
    ZX_resid, success = demean(
        x=ZX, flist=_fe, weights=mu.flatten(), tol=_fixef_tol
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions