Skip to contents

Stitches together formula for use in fixest::feols

Usage

formula_fixest(y, X, W = NULL, D = NULL, Z = NULL)

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>