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

st: New version of -eclplot- on SSC


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: New version of -eclplot- on SSC
Date   Tue, 16 Nov 2004 14:31:31 +0000

Hello All

Thanks to Kit Baum, a new version of the -eclplot- package (described as below on my website) is available for download on SSC (using the -ssc- command in Stata 8).

The new version adds an option -eplottype()-, allowing the user a choice of 7 plot types for the estimates, corresponding to the -graph twoway- subcommands -scatter-, -connected-, -line-, -area-, -bar-, -spike- and -dropline-. These estimate plot types can be combined with the existing 8 range plot types available for the confidence limits to define 7*8=56 combined plot types, some of which are more useful than others, and all of which can be either vertical or horizontal. For instance, if the user types

. eclplot estimate min95 max95 predictor, eplot(bar)

then -eclplot- produces a detonator plot, with the lower confidence limits visible in front of the bars.

I have also added an option -nociforeground-, allowing the user to specify whether the confidence intervals are in the foreground or in the background, relative to the estimates. If not specified, it is set to a sensible default, depending on the estimate plot type and the confidence interval plot type. However, in the previous example, the user can override the default by typing

. eclplot estimate min95 max95 predictor, eplot(bar) nocifore

and produce a detonator plot with the lower confidence intervals invisible behind the bars, in order to annoy the statistical referee.

The dialog has been updated to allow these new options to be set without learning a graphics programming language with confusingly-named options, suboptions and sub-suboptions.

Best wishes

Roger


---------------------------------------------------------------------------------------
package eclplot from http://www.kcl-phs.org.uk/rogernewson/stata8
---------------------------------------------------------------------------------------

TITLE
eclplot: Horizontal and vertical confidence interval plots

DESCRIPTION/AUTHOR(S)
eclplot creates a plot of estimates with lower and upper confidence limits
on one axis against another numeric variable on the other axis. The estimates
and lower and upper confidence limits are stored in three variables, in a
data set with one observation per confidence interval to be plotted. Data
sets with such variables may be created manually (using a spreadsheet),
or using the parmest package, or using statsby or postfile in official Stata.
The user has a choice of plotting the confidence intervals horizontally or
vertically, a choice of plot styles for the estimates, and a choice of range
plot styles for the confidence intervals. It is also possible to overlay
the confidence interval plot with other plots using the plot option.
eclplot may be used either as a command or through a dialog.

Author: Roger Newson
Distribution-Date: 15november2004
Stata-Version: 8

INSTALLATION FILES (click here to install)
eclplot.ado
eclplot.hlp
eclplot.dlg
eclplot_98s.dlg
---------------------------------------------------------------------------------------
(click here to return to the previous screen)

--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index