Skip to contents

Stitches together formula for use in lm/glm

Usage

formula_stitcher(Y, X, factors = NULL)

Arguments

Y

The dependent variable

X

List of independent variables (continuous/dummy variables)

factors

List of factor variables (NULL by default)

Examples

formula_stitcher('wage', c('age', 'experience', 'married'), c('ethnicity', 'sector'))
#> wage ~ age + experience + married + factor(ethnicity) + factor(sector)
#> <environment: 0x5638ecaf13a0>