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: Re: Odds ratio graph - selecting order of bars


From   David Hoaglin <[email protected]>
To   [email protected]
Subject   Re: st: Re: Odds ratio graph - selecting order of bars
Date   Tue, 9 Jul 2013 18:11:21 -0400

Hi, Mike.

In that odds ratio graph, the first step should be to remove the bars.
 They are not useful in such a display, as a later graph shows (by
plotting the point estimates of the odds ratios without the bars).

That site has a surprising number of poor graphical displays.

David Hoaglin

On Tue, Jul 9, 2013 at 5:41 PM, Michael Stewart
<[email protected]> wrote:
> Hi,
>
> I am reffering to  http://www.survey-design.com.au/Stata%20Graphs.html
>  , Odds ratio graph - selecting order of bars
>
> I cant understand the utility of "tab estimate, gen(kk)" command .I am
> getting the same result with and without that command .
>
> The commands are as follows
>
> **********example begin*********
>
> sysuse nlsw88, clear
> logit union married never_married collgrad south
>
> parmest, norestore eform
>
> tab estimate, gen(kk)
>
> //order of bars
> input a
> 1
> 2
> 3
> 4
> 5
>
> egen axis= axis( a estimate), label(parm)
>
> twoway bar  estimate axis, base(1) horizontal barw(.5) ///
> xline(1) ylab(, valuelabel angle(0)) ||                ///
> rcap min95 max95 axis, horizontal                      ///
> legend(order(1 "point estimate"                        ///
> 2 "95% conf. int.") pos(6))                            ///
> xtitle("odds ratio") ytitle("") scheme(color)
>
> **********example end*********
>
> Thanks a lot for your time and consideration
>
> Mike
>
> --
> Thank you ,
> Yours Sincerely,
> Mike.
*
*   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