Error bars in Stata bar graph

Error bars in Stata bar graph

by Chuan Mei Lee -
Number of replies: 5

Is there a good way to insert error bars (SE or SD) into Stata bar graphs? 

Thanks!

In reply to Chuan Mei Lee

Re: Error bars in Stata bar graph

by Raj Kalapatapu -

See these websites. It's a little complicated:

http://www.ats.ucla.edu/stat/stata/faq/barcap.htm

http://blogs.worldbank.org/impactevaluations/tools-trade-graphing-impacts-standard-error-bars

Raj

In reply to Raj Kalapatapu

Re: Error bars in Stata bar graph

by Tiffany -

Raj found the two most useful websites for a step-by-step on how to create bar graphs with error bars. I will be giving a mini-lecture on this topic tomorrow followed by a brief demo. I will provide you all with a list of helpful commands as well.

In reply to Tiffany

Re: Error bars in Stata bar graph

by Raj Kalapatapu -

Ok, thanks.

In the meantime, I had already e-mailed Stata directly to address the issue. It's rather surprising that we have to go through these hoops for something that is much simpler in Excel or SPSS. Attached is a PDF of my e-mail to them, and their response. They give some code.

Raj

In reply to Chuan Mei Lee

Re: Error bars in Stata bar graph

by Tiffany -

Hi,

 

Here is a step-by-step list of the commands I used to create the bar graph with error bars.

 

Thanks,

Tiffany

In reply to Tiffany

Re: Error bars in Stata bar graph

by Chuan Mei Lee -

Thank you for this very detailed guide! And thanks Raj for the links. This is very helpful.