Code:
generate order = 1 if FirstLangOne=="A+" replace order = 2 if FirstLangOne=="A" replace order = 3 if FirstLangOne=="B+" replace order = 4 if FirstLangOne=="B" replace order = 5 if FirstLangOne=="C+" replace order = 6 if FirstLangOne=="C" replace order = 7 if FirstLangOne=="D+" replace order = 8 if FirstLangOne=="F" replace order = 9 if FirstLangOne=="Ab" graph bar, over(FirstLangOne, sort(order))
variable mean not found
r(111)
Can't figure out what is going wrong with the sort option. I am using Stata version 14.2. Kindly reply asap.
0 Response to Putting the bars in a prespecified order
Post a Comment