The structure of my data for this task includes two variables of interest: GroupID and Name:
GroupID Name
1 A
1 B
1 C
2 D
2 E
2 F
3 G
3 H
3 I
4 A
4 B
4 C


















I know how to find all groups that have duplicates of one variable (e.g. Name=="A"):

Code:
duplicates tag name, gen(dup)
However, I now wish to tag all groups which have the same combination of names.
In this example above, that would be Group==1 and Group==4, both of which contain all of the values "A", "B", and "C".
Any advice would be appreciated.