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