george hoffman earlier wrote
> > 1. is there a command to graph mean (as dot or bar) and +/-
> > error bars (sd,
> > se, ci, whatever) of a variable over/by categorical
> > variable? in stata5-6, i
> > used joanne garrett's predxcat with my own modifications.
> > i've spent hours
> > with the manuals, online help, menus, decomposing ado
> > files, but can't find
> > a straightforward way to do it. an ado-approach would be to
> > 'oneway y x',
> > capture the coeffecients and sd's, and graph them somehow -
> > but should i
> > have to program to get mean+/-sd graphically? I would
> > think this would
> > still be a highly desired common graphics option. what am
> i missing?
and I replied
> I have a -ciplot- sitting on my machine. No help file yet.
> I will issue ASAP.
>
> It shows means +/- ci as calculated by -ci-.
In addition to -ciplot-, which is now done and awaiting
launch on SSC, don't forget -serrbar-, e.g.
. egen sd = sd(mpg), by(rep78)
. egen mean = mean(mpg), by(rep78)
. egen tag = tag(rep78)
. serrbar mean sd rep78 if tag
Arbitrary categorical variables can be mapped
to groups by
. egen group = group(catvar), label
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/