Skip to content

Implement formulaic's multistage syntax #1125

@leostimpfle

Description

@leostimpfle

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions