eelbrain.pipeline.MneExperiment.label_groups

MneExperiment.label_groups(self, subject, groups)

Generate Factor for group membership

Parameters:
subject : Factor

A Factor with subjects.

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 : Factor

A Factor that labels the group for each subject.