I have a datset consisting of individuals, and then I have information on their education. One variable 'x' shows the type of education with numbers ranging from 1 to 100. Then I have another variable showing the type of education with text.
Dataexample:
Is there a way where I can define value labels for x using the text value of y?
Dataexample:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str2 id float x str9 y "1" 1 "Carpenter" "2" 1 "Carpenter" "3" 2 "Mechanic" "4" 5 "Astronaut" end
Is there a way where I can define value labels for x using the text value of y?

Comment