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]

st: New version of -eclplot- on SSC


From   "Roger B. Newson" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: New version of -eclplot- on SSC
Date   Wed, 04 Jan 2012 13:35:48 +0000

Thanks as always to Kit Baum, a new version of the -eclplot- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have an old version of -eclplot-.

The -eclplot- package is described as below on my website, and produces plots of estimates with confidence limits. The new version adds an option -baddplot()-, which is like the -addplot()- option, except that the additional plot specified is in the background (behind the extimates and confidence limits). So, if the user programs:

sysuse auto, clear;
collapse (min) min=weight (p25) p25=weight (p50) p50=weight (p75) p75=weight (max) max=weight
  if !missing(rep78),
  by(rep78);
eclplot p50 p25 p75 rep78, hori eplottype(scatter) rplottype(rbar)
  estopts(msize(4)) ciopts(barwidth(0.75))
  ylab(1(1)5)
  xtitle("Weight (minimum, maximum and percentiles 25, 50 and 75)")
  baddplot(rspike min max rep78, hori)
  ;

then -eclplot- will produce a quasi-confidence-interval plot, with the 50th percentiles as "estimates" and the 25th and 75th percentiles as "confidence limits", and with spikes in the background (behind the "confidence intervals"), recording the minimum and maximum.

The new -eclplot- also fixes an old issue, where the SSC version of -eclplot- had the old Stata Version 9 on-line help file -eclplot.hlp-, instead of the up-to-date Stata Version 10 on-line help file -eclplot.sthlp-, documenting the -addplot()- and -baddplot()- options. However, the old Stata Version 8 -plot()- option still works for -eclplot-.

Best wishes (and Happy New Year)

Roger


--
Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

-----------------------------------------------------------------------------------
package eclplot from http://www.imperial.ac.uk/nhli/r.newson/stata10
-----------------------------------------------------------------------------------

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, and to overlay multiple superimposed confidence interval plots using the supby() option. eclplot may be used either as a command or through a dialog.

      Author: Roger Newson
      Distribution-Date: 03january2012
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      eclplot.ado
      eclplot.sthlp
      eclplot.dlg
      eclplot_98s.dlg
-----------------------------------------------------------------------------------
(click here to return to the previous screen)
*
*   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