Skip to content

solver = jax leads to errors with CRV standard errors #788

Open
@s3alfisc

Description

@s3alfisc

Example:

import pyfixest as pf 
data = pf.get_data()

# no error
pf.feols("Y ~ X1 | f1 + f2", data=data, solver = "jax", vcov = "iid")
# no error
pf.feols("Y ~ X1 | f1 + f2", data=data, solver = "jax", vcov = "hetero")
# error 
pf.feols("Y ~ X1 | f1 + f2", data=data, solver = "jax", vcov = {"CRV1":"f1"})

# File "pyfixest\estimation\vcov_utils.py", line 131:
# def _crv1_meat_loop(
#     <source elided>
# ) -> np.ndarray:
#    k = scores.shape[1]

I suppose that there is some incompatibility between the numba code in the _crv1_meat_loop and jax?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions