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: Constructing error bars with 95% confidence interval


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: Constructing error bars with 95% confidence interval
Date   Thu, 03 Apr 2014 17:25:27 +0100

I think you might like to use the -eclplot- package, which you can download from SSC. If you have 4 variables in a dataset, containing, respectively, the estimates, the lower limits, the upper limits, and the parameter ID variable against which the confidence intervals are plotted, then you can type something like

eclplot estimate_varname clmin_varname clmax_varname parmid_varname

and get the plot you seem 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 7594 7931
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page: http://www.imperial.ac.uk/nhli/reomph/

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

On 03/04/2014 15:04, Micky Padway wrote:
Hi,

I am trying to construct error bars with 95% intervals around each
observation.  Can someone shed some light as to how I might do that?

Thanks,
Micky

*
*   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