Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: detonator plot with three grouping variables


From   David Hoaglin <dchoaglin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: detonator plot with three grouping variables
Date   Wed, 8 May 2013 23:47:32 -0400

Ronnie,

A good first step would be to omit the bars entirely.  Freeman et al.
(2008) discuss that type of plot under the name "dynamite plunger
plot" in their chapter "How to display data badly."  The bars take up
space to no good purpose.  A more effective plot would show the
estimates with error bars or confidence intervals (and an explanation
of whether the intervals are error bars or confidence intervals).

David Hoaglin

Freeman JV, Walters SJ, Campbell MJ (2008). How to Display Data.  BMJ Books.

On Wed, May 8, 2013 at 5:49 PM, Ronnie Babigumira <rb.glists@gmail.com> wrote:
> Hi,
> I am trying to create a detonator plot like the one in this example http://www.ats.ucla.edu/stat/stata/faq/barcap.htm only I have 3 levels. Here is an example using the accessible auto data
>
> sysuse auto,clear
> egen lwst = fill(1,2,1,2)
> recode rep78 (1 2 = 3)
>
> What I would like to do is add error bars to this plot
>
> gr bar price, over(lwst) over(foreign) over(rep78)
>
> Any help is much appreciated
>
> Best,
>
> Ronnie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index