I am using encode to convert a variable from string to numeric type so that I can use it in a regression. Since the variable only contains numeric values (though its type is a string) hene I want to assign the same labels as values. For example, my variable name is Mathematics and it has values 80,90,100. When I will encode, the stata will assign a different value to these numbers. I want to assign the same values to my variable 1.e the value for label 80,90 should be 80, 90 respectively and so on.
Can someone help how to do that?