Stitches together formula for use in fixest::feols
formula_fixest.RdStitches together formula for use in fixest::feols
Arguments
- y
- The dependent variable 
- X
- vector of controls 
- W
- treatment variable 
- D
- vector of factor variables to be partialed out 
- Z
- vector of instruments 
Examples
formula_fixest(y = 'mpg', X = c('hp', 'drat'), D = c('wt', 'vs'))
#> mpg ~ hp + drat | wt + vs
#> <environment: 0x5638f2681470>
formula_fixest(y = 'mpg', X = c('hp', 'drat'), W = 'gear', Z = c('cyl', 'carb'), D = c('wt', 'vs'))
#> mpg ~ hp + drat | wt + vs | gear ~ cyl + carb
#> <environment: 0x5638f26defd0>