I mean, in my dataset, I have a string variable X, which has 10 values such as a, b, c, etc.
When I use tab command, it gives the result
X freq.
a 10
b 5
c 20
And I want to sort values of X, from highest to lowest, in order to have the following result
X freq.
c 20
a 10
b 5
Can I do that in stata? Thank you all in advance
When I use tab command, it gives the result
X freq.
a 10
b 5
c 20
And I want to sort values of X, from highest to lowest, in order to have the following result
X freq.
c 20
a 10
b 5
Can I do that in stata? Thank you all in advance
Comment