Skip to contents

Build model formula from user specification

Usage

build_model_formula(expected, vars, conds = NULL, variable_labels = NULL)

Arguments

expected

Formula, character shortcut, or NULL

vars

Character vector of margin variable names (with prefixes like x__Class)

conds

Character vector of conditioning variable names (optional, with prefixes)

variable_labels

Optional named character vector mapping internal variable names to their original expressions.

Value

Formula object or NULL