Internal helper function that handles cases where variables are selected for both dependent and independent roles. Automatically removes overlapping variables from the dependent list and provides user feedback.
resolve_variable_overlaps(dep, indep)Character vector of dependent variable names with overlaps removed
Character vector of dependent variable names
Character vector of independent variable names
If overlapping variables are found:
Informs user about the overlap via cli::cli_inform()
Removes overlapping variables from dep vector
Throws error if no dependent variables remain after removal