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

st: RE: RE: Graph showing ORs (or RRs) and confidence intervals

From   "Newson, Roger B" <>
To   "''" <>
Subject   st: RE: RE: Graph showing ORs (or RRs) and confidence intervals
Date   Thu, 26 Mar 2009 19:36:38 +0000

One possibility here might be to use -eclplot-, downloadable from SSC, which combines the functions of -rcap- and -scatter- in a single command. To see a description of -eclplot-, type, in Stata,

ssc describe eclplot

and to download -eclplot-, type

ssc install eclplot, replace

The on-line help for -eclplot- contains some hypertext references on how to use -eclplot-, together with other packages.

I hope this helps.

Best wishes


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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

-----Original Message-----
From: [] On Behalf Of Nick Cox
Sent: 26 March 2009 19:11
Subject: st: RE: Graph showing ORs (or RRs) and confidence intervals

-hplot- (which goes back to 1997 at least) still works! But there was no
point in my updating it. It was superseded in Stata 8 by both -graph
dot- (etc.) and various -twoway- commands. The StataCorp developers
looked carefully at the same sources of inspiration. 

So, in terms of new Stata graphics, this could be a -twoway- plot using
both -rcap- and -scatter-. 

There is a pertinent tutorial in 

SJ-8-2  gr0034  . . . . . . . . . .  Speaking Stata: Between tables and
        (help labmask, seqvar if installed) . . . . . . . . . . . .  N.
J. Cox
        Q2/08   SJ 8(2):269--289
        outlines techniques for producing table-like graphs

I will be talking around this kind of topic at the Washington, DC
meeting in July. 


Elizabeth Allred

Back in 2001 (Version 6) Nick Cox wrote a program called hplot with
which one could display odds (or risk) ratios and confidence intervals.
Has anybody updated hplot or written something similar  that they'd be
willing to share?

Below is a sketch of what I'm looking for.


var A |     |---------x----------------|
var B ||-----------x--------------------|
var C |             |-------x------------|
                      1              2       

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index