| 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)
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.
0 Response to Counting groups that have duplicate set of values within a variable
Post a Comment