Split formula into terms
get_fml_parts(formula, parts_as_formula = FALSE)List of expressions/formula for each part of the formula. It will be of type symbol/language unless parts_as_formula = TRUE. Can be used with
fixest::xpd and the dot bracket syntax to create formula. Any missing
elements will be given a value of NULL. The list contains the following:
The LHS
The linear part of the exogenous variables
The fixed effects part of the exogenous variables
The endogenous variable
The linear part of the instruments
The fixed effects part of the instruments
Full formula following fixest syntax:
y ~ W | W_FE | T ~ Z | Z_FE.
Logical. If TRUE, then each part will be a
right-hand side formula. Default is FALSE