When I first implemented this, formulaic did not support IV syntax. This got eventually merged and now you can specify IVs as
Formula("y ~ x1 + x2 + [ x3 + x4 ~ z1 + z2]")
This of course does not match r-fixest and I am not super keen to implement any breaking changes.
On the other hand, there is clear benefit to have this handled by formulaic and being able to drop all of the IV parsing code in this section. Maybe one option would be to allow the formulaic-native syntax and handle it in the model_matrix method in a backwards compatible way?
Originally posted by @s3alfisc in #1118 (comment)
When I first implemented this,
formulaicdid not support IV syntax. This got eventually merged and now you can specify IVs asThis of course does not match r-fixest and I am not super keen to implement any breaking changes.
On the other hand, there is clear benefit to have this handled by
formulaicand being able to drop all of the IV parsing code in this section. Maybe one option would be to allow the formulaic-native syntax and handle it in the model_matrix method in a backwards compatible way?Originally posted by @s3alfisc in #1118 (comment)