py-econometrics / pyfixest

Fast High-Dimensional Fixed Effects Regression in Python following fixest-syntax
https://py-econometrics.github.io/pyfixest/
MIT License
176 stars 35 forks source link

HAC Standard Errors #675

Open s3alfisc opened 3 weeks ago

s3alfisc commented 3 weeks ago

See equations (9) and (10) in Various Versatile Variances. See also this set of lecture notes.

Implement utility functions _vcov_hc() and _vcov_hac() following the R sandwich package.

Allow arguments "hac" for pf.feols() and pf.fepois().

Likely, everything needs to be implemented in numba for performance reasons; the estimators are hard to vectorize.