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
Related Posts with STATA labelling wrong?
Replacing column values with values of another variable by household idHi everyone, I have 5 variables in my dataset namely, household id, wealth rank, and household ids …
Logit Marginal Effects at means with interaction termsHi all, I am working on my MSc. and I have data for 201 participants who each made 457 choices (tot…
Graph question for growth model "xtmixed"Hi, I'm having a problem in making a line graph for my growth model. The outcome variable is depress…
Seemingly Unrelated Regression with endogeneity and sample selectionHello everyone! I wish to see the impact of income from an activity on various types of household ex…
Calculating growth in unbalanced panel dataCan someone help me with calculating the growth percentages of a variable in panel data where I don'…
Subscribe to:
Post Comments (Atom)
0 Response to STATA labelling wrong?
Post a Comment