Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Dot plots with confidence intervals?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Dot plots with confidence intervals?
Date   Wed, 23 Mar 2011 20:41:16 +0000

Even doing this from first principles is about two lines:

sysuse auto
statsby mean=r(mean) ub=r(ub) lb=r(lb), by(rep78) clear : ci mpg
sc mean rep78 || rcap ub lb rep78 , legend(off) ytitle(Means and 95% c.i.s)

For bells, whistles, convenience commands, etc., check out

1. -eclplot-

SJ-4-3  st0043_1  . .  Updates for sencode, listtex, ingap, factext, & decsave
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  R. Newson
        (help descsave, dsconcat, eclplot, factext, factmerg, factref,
        ingap, lincomest, listtex, parmest, sencode if installed)
        Q3/04   SJ 4(3):359
        software updates for sencode, listtex, ingap, factext,
        factmerg, factref, and decsave

SJ-3-3  st0043  . Confidence intervals & p-values for delivery to the end user
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  R. Newson
        (help descsave, dsconcat, eclplot, factext, factmerg, factref,
        ingap, lincomest, parmby, parmest, sencode if installed)
        Q3/03   SJ 3(3):245--269
        outlines the whole process and provides programs for
        converting statistical output to plots or tables ready
        to be inserted in TeX, LaTeX, HTML, or a word processor

2. -ciplot- from SSC

3. -statsby- and

The Stata Journal
Volume 10 Number 1: pp. 143-151
Speaking Stata: The statsby strategy
Nicholas J. Cox

Abstract.   The statsby command collects statistics from a command
yielding r-class or e-class results across groups of observations and
yields a new reduced dataset. statsby is commonly used to graph such
data in comparisons of groups; the subsets and total options of
statsby are particularly useful in this regard. In this article, I
give examples of using this approach to produce box plots and plots of
confidence intervals.

On Wed, Mar 23, 2011 at 8:27 PM, Wesley Joe <[email protected]> wrote:

> Does anybody have a handy tool for quickly creating dot plots with
> confidence intervals?
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index