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: box plots of main effect relative risks


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: box plots of main effect relative risks
Date   Sat, 22 Sep 2012 08:11:46 +0100

-parmby-, -sencode-, -eclplot- are all user-written commands: you are
asked to explain where you got them. See Statalist FAQ.

As I understand it, -eclplot- does not purpoort to do box plots with
whiskers. Therefore, use -graph box- or -graph hbox-.

Nick

On Sat, Sep 22, 2012 at 5:44 AM, Alpna Agrawal Kapur <[email protected]> wrote:

> I would like to --
> (1) produce box plots with whiskers of relative risks
> (2) graph the main effect relative risks from multiple regressions and
> produce box plots of all these relative risks in one graph.
>
> I am using Stata 10
>
> The code I have tried --
> parmby "xi: glm y x1 covar1 covar2 covar3, fam(poisson) link(log)
> nolog robust eform", label norestore eform
> sencode label, gene(parmlab)
> eclplot estimate min95 max95 parmlab
>
> parmby "xi: glm y x2 covar1 covar2 covar3, fam(poisson) link(log)
> nolog robust eform", label norestore eform
> sencode label, gene(parmlab)
> eclplot estimate min95 max95 parmlab
>
> Problems are --
> (1) does not graph box plots with whiskers
> (2) I want to graph RRs of x1 and x2 together in same graph, but this
> code creates two different datasets and includes RRs for the
> covariates as well which I do not want. I'd like to create one dataset
> that only stores estimates x1 and x2, then graph these RRs as box
> plots with whiskers.
*
*   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