Using Stata 11, catplot(SSC)
I have a binary variable (var1) and a categorical variable (var2) with ~30 categories. I am plotting frequency of var2 over var1 using catplot:
catplot var1 var2, recast(bar) var2opts(sort(2) descending) asyvars
This is almost exactly what I want, except that the sorting is only applying to var1==1, but not the var2 categories that var1==0. See below (please excuse the x-axis labels).
Any ideas would be much appreciated!
Thanks,
Katrina
I have a binary variable (var1) and a categorical variable (var2) with ~30 categories. I am plotting frequency of var2 over var1 using catplot:
catplot var1 var2, recast(bar) var2opts(sort(2) descending) asyvars
This is almost exactly what I want, except that the sorting is only applying to var1==1, but not the var2 categories that var1==0. See below (please excuse the x-axis labels).
Any ideas would be much appreciated!
Thanks,
Katrina
Comment