Hi all,

I have a ordinal variable with 4 levels, when I upload my data, STATA recognizes it as a string variable so I decided to code it as numeric and then label it properly. The first time I used this code it worked fine, but today for some reason STATA is labelling my variables wrong - and when I mean wrong, the frequency of each level is mixed up. I am not sure what to do!

This is my code:

encode category1, generate(ncategory1)
label define ncategory1 2 "Health maximiser" 1 "Pro-non-cancer" 4 "Strong prioritarian" 3 "Weighted prioritarian", replace

When I used the tabulate function before I obtained these results (Check image right.jpg)
Array


but now I am obtaining results which are mislabeled and missing (check image wrong.jpg) PLEASE HELP
Array