As the title suggests, I am looking for a way to create a graph, with bars for mean and overlapped 95% conf. inv. for a set of variables, in one graph (dataset appended).
I have previously managed to use tips on overlapping twoway (bar) (rcap) for instances when data was used from one variable (in one column), and split into separate bars for separate groups. I append an example of that, to show the format of graph I am looking to create. The procedure I used for that included creating new variables for mean, sd, upper and lower conf bounds as follows:
This time, I want individual bars and conf inv. for variables, not groups. Or simply put, the x bar should have variables A through I, without any grouping within variables. I can't figure out an alternative. I can get bars for means with below code but the 'rcap' overlay doesn't seem to be an option here.
I am looking for an exact copy of the format because both graphs will go into one manuscript.

I have previously managed to use tips on overlapping twoway (bar) (rcap) for instances when data was used from one variable (in one column), and split into separate bars for separate groups. I append an example of that, to show the format of graph I am looking to create. The procedure I used for that included creating new variables for mean, sd, upper and lower conf bounds as follows:
HTML Code:
egen meanA = mean(A), by(Group) egen nA = count(A), by(Group) egen sdA = sd(A), by(Group) gen upperA = meanA + invttail(nA-1,0.025) * sdA / sqrt(nA) gen lowerA = meanA - invttail(nA-1,0.025) * sdA / sqrt(nA) twoway (bar meanA Group) (rcap upperA lowerA Group)
HTML Code:
graph bar (mean) A B C D E F G H I
Comment