- Large(ish) Refactoring of Interal Processing of Model Formulas, in particular `FixestFormulaParser` and `model_matrix_fixest`. As a results, the code should be cleaner and more robust.
- The `fml` argument of `model_matrix_fixest` is deprecated. Instead, `model_matrix_fixest` now asks for a `FixestFormula`, which is essentially a dictionary with information on model specifications like a first stage formula (if applicable), dependent variables, fixed effects, etc.
- Additionally, `model_matrix_fixest` now returns a dictionary instead of a tuple.
- Fixed effects reference setting via `i(var1, var2, ref)` syntax is back. The `i_ref1`, `i_ref2` function arguments are deprecated. It is again possible to run
python
import pyfixest as pf
data = pf.get_data()
fit1 = pf.feols("Y ~ i(f1, X2)", data=data)
fit2 = pf.feols("Y ~ i(f1, X2, ref = 1)", data=data)
fit1.coef()
Coefficient
Intercept -0.164200