Dear Statalists
I assume, I have a quite stupid question, but really I couldn't figure out how to do the following
My data looks like this:
Now what I want is one bar chart that looks like this (done as a pivot chart in excel..)

i.e. I want one chart that displays the means of var1, var2, ... and group them for each var, to be able to compare the averages between the groups.
Additionally, should have error bars.
If I use the gui of stata, I can only do over(grp) and then I get bars of the variable means per group... e.g. "graph bar (mean) var1 var2, over(grp)"
Hope, somebody can help
I assume, I have a quite stupid question, but really I couldn't figure out how to do the following
My data looks like this:
group | var1 | var2 | var3 | var5 |
0 | 4 | 4 | 3 | 5 |
0 | 4 | 2 | 2 | 5 |
0 | 2 | 3 | 5 | 2 |
1 | 1 | 3 | 2 | 2 |
1 | 1 | 3 | 3 | 3 |
1 | 2 | 3 | 3 | 3 |
2 | 2 | 3 | 2 | 4 |
2 | 2 | 4 | 1 | 2 |
2 | 5 | 7 | 2 | 1 |
i.e. I want one chart that displays the means of var1, var2, ... and group them for each var, to be able to compare the averages between the groups.
Additionally, should have error bars.
If I use the gui of stata, I can only do over(grp) and then I get bars of the variable means per group... e.g. "graph bar (mean) var1 var2, over(grp)"
Hope, somebody can help

Comment