[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: RE: graph mean and sd over/by category
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
* For searches and help try: