View source: R/formulaMakers.R
| formula_lfe | R Documentation | 
Stitches together formula for use in felm
formula_lfe(y, X, W = NULL, D = NULL, Z = NULL, C = NULL)
| 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) | 
formula_lfe(y = 'mpg', X = c('hp', 'drat'), D = c('wt', 'vs'))
formula_lfe(y = 'mpg', X = c('hp', 'drat'), W = 'gear', Z = c('cyl', 'carb'), D = c('wt', 'vs'), C = c('cyl', 'wt'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.