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]

Re: st: Adding error bars to bar chart


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: Adding error bars to bar chart
Date   Tue, 04 Mar 2014 15:21:42 +0000

I would always use the SSC package -eclplot- in these circumstances. It does 56 types of confidence interval plot, corresponding to all the combinations of the 7 possible values for the -eplottype()- option (specifying how to display estimates)combined with 8 possible values for the -rplottype()- option (specifying how to display confidence limits). The options

eplottype(bar) rplottype(rcap)

give the familiar "detonator plot" (ie bars with error bars) that Chris seems to want.

I hope this helps.

Best wishes

Roger

Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology, Occupational Medicine
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.

On 04/03/2014 15:09, Chris Yang wrote:
Dear Stata users,

Is there a way to add SEM error bars to a bar chart? I have the SEM
calculated for each bar in the data, but drawing it on top of the bar
seems not so straightforward in Stata.

Any suggestion? Thanks in advance.

Best regards,
Chris
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index