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

Re: st: RE: alternative to rcap

From   Roger Newson <>
Subject   Re: st: RE: alternative to rcap
Date   Mon, 01 Mar 2004 12:07:24 +0000

At 10:19 01/03/04 +0000, Nick Cox wrote (in reply to Dimitriy V. Masterov):
-twoway rcap- here draws the bars. To do what
you want you need to add other graph elements.

Alternatively, as a canned solution,
-serrbar- will get you most of the way.
Another canned solution might be to use -eclplot-, downloadable from SSC, with a by-option. If you install -eclplot-, then you can type something like

gene min95=mean-2*se
gene max95=mean+2*se
eclplot mean min95 max95 x, by(country sex, compact legend(off)) estopts(connect(direct))

and you should get an array of CI plots, one for each country and sex.

I hope this helps.


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

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

* For searches and help try:

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