as_simple_formula function

Creates a simple formula object from a string

Creates a simple formula object from a string

Converts a string list of variables into a formula object

as_simple_formula(outcome, covars)

Arguments

  • outcome: character (length 1 vector). Name of the outcome variable
  • covars: character (vector). Name of covariates

Returns

A formula