formula_fixest: Stitches together formula for use in fixest::feols

View source: R/formulaMakers.R

formula_fixestR Documentation

Stitches together formula for use in fixest::feols

Description

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'))
formula_fixest(y = 'mpg', X = c('hp', 'drat'), W = 'gear', Z = c('cyl', 'carb'), D = c('wt', 'vs'))


apoorvalal/LalRUtils documentation built on Sept. 22, 2023, 5:53 p.m.