Hello,
I am new with Stata and I cannot find a solution to convert these variables into a unique categorical variable "Nationality" :
Here is an example of the dataset:
Does one of you have any suggestion on how to convert these variables into categorical variable as follow:
Nationality
1-USA
2-UK
3- France
4- Germany
5- Spain
6- Australia
7- Canada
8- Russia
I am new with Stata and I cannot find a solution to convert these variables into a unique categorical variable "Nationality" :
Here is an example of the dataset:
USA | UK | France | Germany | Spain | Australia | Canada | Russia |
No | No | No | Yes | No | No | Yes | No |
No | Yes | No | No | No | No | No | No |
Yes | No | No | No | No | No | No | No |
Yes | No | No | No | No | No | No | No |
No | Yes | No | No | No | No | No | No |
No | No | No | No | Yes | No | No | No |
No | No | No | No | No | Yes | No | No |
Nationality
1-USA
2-UK
3- France
4- Germany
5- Spain
6- Australia
7- Canada
8- Russia
Comment