I'm looking for way to generate dummy variables that separate given categories into all possible grouping combinations. For example, if we have three categories (say A, B and C), there are five possible groupings: I'm looking for way to generate dummy variables