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: 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   "Liao, Junlin" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: 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:50:59 +0000

Scratch that. Zhiqiang's solution works. Sorry.

Junlin


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Liao, Junlin
Sent: Friday, February 18, 2011 11:44 AM
To: [email protected]
Subject: st: RE: 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)?

Interesting solution. But I fail to see that it solves the problem, especially if the y variable is categorical. Even if y is numeric, the chart is not meaningful, not what Xin wanted.

Junlin


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Friday, February 18, 2011 11:08 AM
To: '[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)?

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/


________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________

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


________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________

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