I think this could simply be a small wrapper around ard_categorical() where we re-name
group1 -> variable
group1_level -> variable_level
and vice-versa for the variable columns. To keep it simple, we'd only allow users to pass a single by variable, so we can merely swap the by and variable labels.
I think this could simply be a small wrapper around
ard_categorical()where we re-nameand vice-versa for the variable columns. To keep it simple, we'd only allow users to pass a single
byvariable, so we can merely swap thebyandvariablelabels.