Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Other Box plots


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Other Box plots
Date   Thu, 28 Nov 2002 10:16:14 -0000

Wallace, John
> >
> > I'm still in the early stages of exploring Stata, but I
> > haven't found a way
> > yet to get box plots to be generated the way I prefer.  The
> > built-in "box"
> > parameter in the graph command comes close, in that the
> > whiskers encompass
> > 1.5*IQR and further outliers are plotted individually - but
> > you can't use a
> > by(groupvar) to get an array of related plots.
> > The hbox addition I found in the STB files allows the by(groupvar)
> > arrangement, but the whiskers encompass the entire range of
> > data, rather
> > than a function of the IQR.  This allows true outliers to
> > dominate the graph
> > in an undesirable way, IMO
> > Is there a third way out there?  Or am I going to have to
> > learn how to
> > program ados to get boxplots the way I like them?
> >
>
> One possibility: copy -hbox- and fiddle with its output.

On second thoughts, that's not
quite trivial. If it were, I would have
implemented the feature that John
desires within -hbox-.

Make sure you are also aware of what -dotplot-
can do. With the addition of bars for median
and quartiles, you can have a hybrid display
which increasingly I offer prefer to boxplots.
Any broad patterns and any fine structure
are often clear simultaneously, the best of both
worlds.

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index