Description Usage Arguments Value
View source: R/construct_formula.R
Construct a formula for lfe::felm
1 | construct_formula(lhs, rhs, fe = 0, clus = 0)
|
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 |
Returns formula object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.