Also check out the official command -serrbar-. It expects means and SDs to exist already, so the -collapse- route is pertinent.
You could show more of the data too. Why stop at means and SDs? Check out -dotplot- (official), -stripplot- (SSC).
Nick
[email protected]
Martin Weiss
sysuse auto, clear
collapse (mean) meanprice= price ///
(sd) sdprice=price, by(rep78)
gen lb=mean-sd
gen ub=mean+sd
twoway (rcap lb ub rep78) ///
(scatter meanprice rep78)
Michael Eisenberg
I would like to generate a graph that plots the mean age with whiskers
representing the standard deviation for each level of a categorical
variable.
For example:
category 1: 70+-2.0
category 2: 71+-3.5
category 3: 72+-4.5
category 4: 73+-2.5
category 5: 74+-1.5
Ideally, I'd like a scatter plot like appearance so that each category
has a point (the mean) with whiskers (std dev).
Is this possible is Stata?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/