Hello Stata people;
I hope I can get a clarification on this one, I'm using Stata 13.1 version and working with this data:
The data represents the share of financial assets in total assets for each social class or decile. The idea is to draw a bar graph showing that part for each decile. As you can see, the deciles (and the other variable) are sorted from the poorest decile to the richest, and I do want to keep that order in a bar graph.
Yet, when using the command graph bar (asis) shareoffinancialassetsintotalass, over(Deciles) and even using that same command with the sort option, I get a bar graph with the categories organized in a different way rather than the way of the dataset.
I guess the solution could be to change something on the sort option of the command. My goal is to have the same order of the categories on the graph as it is on the dataset.
Any help please?
With many thanks!
I hope I can get a clarification on this one, I'm using Stata 13.1 version and working with this data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str5 Deciles byte shareoffinancialassetsintotalass ">D1" 31 "D1-D2" 34 "D2-D3" 42 "D3-D4" 43 "D4-D5" 20 "D5-D6" 14 "D6-D7" 15 "D7-D8" 16 "D8-D9" 20 "<D9" 23 end
Yet, when using the command graph bar (asis) shareoffinancialassetsintotalass, over(Deciles) and even using that same command with the sort option, I get a bar graph with the categories organized in a different way rather than the way of the dataset.
I guess the solution could be to change something on the sort option of the command. My goal is to have the same order of the categories on the graph as it is on the dataset.
Any help please?
With many thanks!
Comment