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

st: RE: mean+ci plot: how to do a ciplot with bar representation of the mean


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: mean+ci plot: how to do a ciplot with bar representation of the mean
Date   Thu, 14 Aug 2003 13:46:37 +0100

[email protected]
> 
> I would like to plot my data in a mean + confidence 
> interval way (Stata 8).
> This can be nicely done with -ciplot-.
> My question:
> I would prefer to have the mean represented by a bar 
> instead of a dot,
> starting from zero, just like this:
> 
>     ^
>     |        ---
>     |         |
>     |         |
>     |         |
>     |     XXXX|XXXX
>     |     XXXX|XXXX
>     |     XXXX|XXXX
>     |     XXXX|XXXX
>     |     XXX---XXX
>     |     XXXXXXXXX
>     |     XXXXXXXXX
>     |     XXXXXXXXX
>     |     XXXXXXXXX
>     |     XXXXXXXXX
>     ---------------------->
> 
> 
> Is it possible to draw such a graph in Stata 8?

This topic has been discussed several times on Statalist 
over the last few months. Possibly no topic has engendered 
such passionate exchanges on Statalist in 2003. 

In the archives, you can see, for example, a thread started
by Buzz Burhans in early June and another thread started by 
Fred Wolfe in late June. The contributions ranged all the way 
from why it is one of the biggest gaps in official Stata, to
why this is a very bad idea, to some code letting you do it, 
or something like it. 

In particular, I posted some code on Statalist on 30 June, 
building on a suggestion by Stephen McKay. I didn't get 
any comments, public or private, on whether it was 
quite what people wanted. 

It shouldn't be too difficult to write a version of 
-ciplot- to do confidence intervals shown as these bar on bar 
plots, but I await expressions of interest in using that 
program before I actually write it. 

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