ID | Best Friend 1 | Best Friend 2 | Best friend 3 | ||
200102 | 200105 | 200110 | 200104 | ||
200103 | 200102 | 200104 | . | ||
200104 | . | . | . | ||
200105 | 200104 | . | . | ||
200106 | 200110 | 200105 | 200104 | ||
200107 | 200110 | 200105 | 200104 | ||
200108 | 200102 | 200109 | . | ||
200109 | 200110 | 200102 | 200109 | ||
200110 | . | . |
I would like to generate a (or several) new variable(s) that show how many times each individual was nominated as best friend by the other individuals. For example ID 200102 was named two times under Best Friend 1.
So the new variable "Number of nominations as BF1" would simply show the value 2 in the row of ID 200102.
Does anyone have an idea how to solve this problem. Every help is highly appreciated. Thanks in advance.
Comment