Skip to contents

Translate shortcut strings to formulas

Usage

shortcut_to_formula(shortcut, vars, conds = NULL)

Arguments

shortcut

Character: "independence", "saturated", or "conditional"

vars

Character vector of margin variable names

conds

Character vector of conditioning variable names (optional)

Value

Formula object