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: RE: RE: how to add error bars to each data marker on a line graph (or the size of the data marker reflect the confidence interval)?


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: RE: how to add error bars to each data marker on a line graph (or the size of the data marker reflect the confidence interval)?
Date   Fri, 18 Feb 2011 17:08:13 +0000

Zhiqiang Wang already gave a one-line solution in Stata. 

http://www.stata.com/statalist/archive/2011-02/msg00986.html

Nick 
[email protected] 

Liao, Junlin

Excel is probably the best for this task. Excel does not require all CI to be the same. With data correctly lined up, it's easy to do it in Excel. It requires quite some manipulation to achieve it in Stata. Please search online for your problem. There are many nice tutorials out there. UCLA is a nice place to look for such material for doing it in Stata.

Xin Lu

I have a data set with 15 rows and four columns: x | y | lower CI for y | upper CI for y.

I use the line graph to illustrate my data. So I would have 15 data markers connected by straight line segment. I need to put error bars (confidence interval for y) at each data point, or I could use the size of the data marker to reflect the confidence interval. Does anyone know if Stata can accomplish it?

I can't use Excel to do it, because Excel requires all CI to be the same at each data point.

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