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?
Loop over double quotationI have a code look like the following: Code: macro drop _all macro def test foreach word in "a"…
Truncation of the most extreme 1 percent of earningsHi all, I want to truncate (not winsorize) the most extreme 1 percent of earnings. However, I do no…
Clustered standard errors in DID LSDV regressionHello Statlisters, I apply a DID approach on trade diversion in regard of antidumping duties impose…
Highly significant Hansen statistics after xtabond2Hello everyone, I have an issue regarding xtabond2 and Hansen statistics and I was wondering if any…
Clustered standard errors in DID LSDV regressionHello Statlisters, I apply a DID approach on trade diversion in regard of antidumping duties impose…
Subscribe to:
Post Comments (Atom)
0 Response to STATA labelling wrong?
Post a Comment