construct_formula: Construct a formula for lfe::felm

Description Usage Arguments Value

View source: R/construct_formula.R

Description

Construct a formula for lfe::felm

Usage

1
construct_formula(lhs, rhs, fe = 0, clus = 0)

Arguments

lhs

Character vector of length 1 with name of left-hand side variable

rhs

Character vector with name(s) of right-hand side variables. If length(rhs) > 1, will be concatenated with " + " in between

fe

(OPTIONAL) Character vector with name(s) of fixed effects. If length(rhs) > 1, will be concatenated with " + " in between

clus

(OPTIONAL) Charactervector with name(s) of clustering variables. If length(rhs) > 1, will be concatenated with " + " in between

Value

Returns formula object


pbaylis/baylisR documentation built on Nov. 8, 2019, 6:20 p.m.