I think the answer is No with -graph box-.
With -stripplot- from SSC you can do things like this:
. sysuse auto
(1978 Automobile Data)
. egen mean = mean(mpg), by(rep78)
. sort rep78
. stripplot mpg, over(rep78) vertical stack box addplot(line mean rep78)
. stripplot mpg, over(rep78) vertical stack box addplot(connect mean
rep78)
which sounds similar to what you want. There are several other options:
see the help.
-stripplot- has a built-in tendency to showing all data points, not just
those beyond quartiles +/- 1.5 IQR. It is not designed as a clone of
-graph box-, but it shares some features.
Nick
[email protected]
Cathy L. Antonakos
I am wondering if it is possible to add a connected line to a box plot.
The line would connect points representing the average value of a second
variable for each group.
The syntax I am using without the second variable is:
graph box index, over(id)
*
* 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/