powered by
`paste_factory()` constructs the right hand side of the regression as a a string i.e. "x + control1 + control2".
paste_factory(controls, x)
A string concatenating independent and control variables separated by '+'.
A vector of strings containing control variable names.
A string containing the independent variable name.
paste_factory(controls = c("control1", "control2"), x = "independentVariable");
Run the code above in your browser using DataLab