groups (list of str | {str: str} dict) – Groups which to label (raises an error if group membership is not
unique). To use labels other than the group names themselves, use
a {group:label} dict.
Returns:
group – A Factor that labels the group for each subject.