Learn R Programming

linea (version 0.1.1)

build_formula: build_formula

Description

Build a formula (e.g. y ~ x1 + x2)

Usage

build_formula(dv, ivs, model_table = NULL, trans_df = NULL)

Value

a formula object

Arguments

dv

string of dependent variable name

ivs

character vector of independent variable names

model_table

tibble/ data.frame as created in the build_model_table function

trans_df

data.frame defining the non-linear transformations to apply

Details

Build a formula (e.g. y ~ x1 + x2) based on a dependent variable name and a model table or independent variables' names' vector