paste_factory: Paste together controls and independent variable

View source: R/helpers.R

paste_factoryR Documentation

Paste together controls and independent variable

Description

'paste_factory()' constructs the right hand side of the regression as a a string i.e. "x + control1 + control2".

Usage

paste_factory(controls, x)

Arguments

controls

A vector of strings containing control variable names.

x

A string containing the independent variable name.

Value

A string concatenating independent and control variables separated by '+'.

Examples

paste_factory(controls = c("control1", "control2"),
              x = "independentVariable");

speccurvieR documentation built on Oct. 10, 2024, 1:08 a.m.