formula_maker: formula_maker function

View source: R/format.R

formula_makerR Documentation

formula_maker function

Description

This function takes as it's input an outcome variable and a vector of covariates and creates a formula object with the covariates separated by '+'. Note this is only for linear models

Usage

formula_maker(outcome, covars)

Arguments

outcome

the outcome variable name. note, this should be in quotes (e.g. "outcome1")

covars

the vector of covariates to collapse

Examples

formula_maker_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.