I want to run a two stages least squares/instrumental variables regression with a second stage that includes controls not included in the first stage. When I run:
library(fixest)
library(modelsummary)
modelsummary(summary(feols(mpg ~ 1 + csw0(cyl, disp) | hp ~ drat, mtcars), stage = 1:2))
the first stage will also include cyl, disp
as controls, but I want them only included in the second stage. How do I achieve this?
Let me know if I should further clarify.