Hello,
I've spent hours since yesterday to plot a simple bar chart which displays two variables with grouped bars.
However I have not made significant progess and that is why I am asking for Your help now.
(I have not found any prior post here that touches on a problem similar to mine)
The variables are both numerical and discrete in Stata, both only contain values of 1, 2, 3, 4, 5, or 6.
I want to have the bars grouped so the number of observations with A=1 relative to the total observations (i.e. bars with percent values) is right next to the bar with the same for Variable B.
The graph below shows what I would like to archieve in Stata.
Every advice I found concerned problems where one would graph A over B.
That is the same problem that I ran into when trying to get to my desired graph with the graphics editor.
However, that is not what I am looking for and I did not manage to come up with any feasible workaround
I would be really thankful for any advice on my problem.
All I am asking for is the strucure of the command that groupes these bars with percent on the y-axis.
I hope I have been clear and precise enough to solve my problem.
I am sorry if that should not be the case and will correct my post.
I've spent hours since yesterday to plot a simple bar chart which displays two variables with grouped bars.
However I have not made significant progess and that is why I am asking for Your help now.
(I have not found any prior post here that touches on a problem similar to mine)
The variables are both numerical and discrete in Stata, both only contain values of 1, 2, 3, 4, 5, or 6.
I want to have the bars grouped so the number of observations with A=1 relative to the total observations (i.e. bars with percent values) is right next to the bar with the same for Variable B.
The graph below shows what I would like to archieve in Stata.
Every advice I found concerned problems where one would graph A over B.
That is the same problem that I ran into when trying to get to my desired graph with the graphics editor.
However, that is not what I am looking for and I did not manage to come up with any feasible workaround
I would be really thankful for any advice on my problem.
All I am asking for is the strucure of the command that groupes these bars with percent on the y-axis.
I hope I have been clear and precise enough to solve my problem.
I am sorry if that should not be the case and will correct my post.
Comment