formula_builder | R Documentation |
Builds models formulae with every combination of control variables possible.
formula_builder(y, x, controls, fixedEffects = NA)
y |
A string containing the dependent variable name. |
x |
A string containing the independent variable name. |
controls |
A vector of strings containing control variable names. |
fixedEffects |
A string containing the name of a variable to use for fixed effects, defaults to 'NA' indicating no fixed effects desired. |
A vector of formula objects using every possible combination of controls.
formula_builder("dependentVariable", "independentVariable",
c("control1", "control2"));
formula_builder("dependentVariable", "independentVariable",
c("control1*control2"), fixedEffects="month");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.