Please help me with this one:
I have a database:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str1 code byte group "a" 1 "b" 1 "c" 1 "d" 1 "b" 1 "f" 1 "a" 1 "c" 1 "c" 1 "a" 2 "c" 2 "e" 2 "h" 2 "j" 2 "j" 2 end
What I want is a list of codes that appears only in group 1, but not in both groups or just in group 2 (unique values, number of occurrences doesn't matter), i.e. b, d, f
Thank you very much!
Best regards,
Cristian
0 Response to select cases based on grouping variable
Post a Comment