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 <[email protected]>
To   [email protected]
Subject   st: New version of -eclplot- on SSC
Date   Mon, 22 Nov 2004 18:56:26 +0000

Hello All

Thanks to Kit Baum, there is now a new version of the -eclplot- package downloadable from SSC. In Stata 8, use the -ssc- command to download this.

The -eclplot- package is described as below on my website. In the latest version, -eclplot- is now a -rclass- command (see -[P] return- and/or -[R] saved results-). It saves in -r()- the -twoway- command that it used to generate the graph, and also the constituent parts of that -twoway- command (plots, if/in qualifiers and twoway options). I have also added a -nograph- option to prevent the graph from being drawn. The user may therefore now use -eclplot- as a low-level programming tool to generate plot subcommands, which may then be combined to produce multiple overlaid plots of estimates and confidence limits using -twoway-. The help file contains an example, in which two staggered detonator plots are produced (using -separate-), showing mean mileage as a function of repair record in US cars and in non-US cars respectively. The two plots are then overlaid using -twoway-, with a legend showing the bar color codes for US cars and for non-US cars.

I would like to thank John Moran of The Queen Elizabeth Hospital, Woodville, South Australia for drawing my attention to the problem of producing staggered multiple overlaid confidence interval plots, and to apologise for only having produced a comprehensive solution for people who already have some understanding of -graph twoway-. I am thinking about how to implement an easy-to-use solution, preferably accessible using the dialog. However, it appears to be a difficult problem, mainly because of the difficulty of specifying the default -legend()- contents in a way that works whether or not the user specifies a by-option. (See -[G] legend_option- and -[G] by_option- for further details.)

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: 22november2004
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: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index