Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Bar graph with IQR bars

From   Lars Folkestad <>
To   "" <>
Subject   Re: st: Bar graph with IQR bars
Date   Wed, 28 Dec 2011 08:57:30 +0100

Dear Juan
There are a couple of things to consider.
Firstly is the plot you want the best for your needs?
A lot of people on this list (The gurus if you like) dislikes these bar
plots with error bars:
Here is why:

But if you insist on the bars than the solution is here:

Where it sais:
generate hiwrite = meanwrite + invttail(n-1,0.025)*(sdwrite / sqrt(n))
generate lowrite = meanwrite - invttail(n-1,0.025)*(sdwrite / sqrt(n))

You should write
. Generate 75IQRvar1 = the value you found using summarize , d
. Generate 25IQRvar1 = the value you found using summarize , d

Hope this helps.


Den 27/12/11 23.23 skrev "Dirk Enzmann" <>:

>Juan wrote:
>Perhaps using boxplots a better alternative, see -graph box-.
>Dr. Dirk Enzmann
>Institute of Criminal Sciences
>Dept. of Criminology
>Rothenbaumchaussee 33
>D-20148 Hamburg
>phone: +49-(0)40-42838.7498 (office)
>        +49-(0)40-42838.4591 (Mrs Billon)
>fax:   +49-(0)40-42838.2344
>*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index