Stitches together formula for use in felm
formula_lfe.Rd
Stitches together formula for use in felm
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
- C
vector of variables cluster standard errors (multi-way permitted by LFE)
Examples
formula_lfe(y = 'mpg', X = c('hp', 'drat'), D = c('wt', 'vs'))
#> mpg ~ hp + drat | wt + vs | 0 | 0
#> <environment: 0x5638f4527e90>
formula_lfe(y = 'mpg', X = c('hp', 'drat'), W = 'gear', Z = c('cyl', 'carb'), D = c('wt', 'vs'), C = c('cyl', 'wt'))
#> mpg ~ hp + drat | wt + vs | (gear ~ cyl + carb) | cyl + wt
#> <environment: 0x5638f4587378>