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: eform


From   Claire Rushton <[email protected]>
To   [email protected]
Subject   Re: st: RE: eform
Date   Tue, 1 Apr 2014 11:53:42 +0100

This is excellent Joe, thank you - it worked perfectly. Could I ask
one further question? Can you accomodate randomsize with this
approach?

Many thanks
Claire

On 31 March 2014 20:58, Joe Canner <[email protected]> wrote:
> Claire,
>
> For whatever reason, the author of -metareg- has chosen not to incorporate the -eform- option into the -graph- option.  If you believe this is an important oversight, you should make a suggestion to the author to that effect.
>
> In any case, it shouldn't be difficult to rectify this situation on your own.  The code from metareg.ado that implements the -graph- option in your particular example isn't very involved:
>
> . tempvar fit
> . qui predict `fit'
> . local size 1/`v'
> . local yti : variable label `y'
> . scatter `y' `xvars' [aw=`size'], msymbol(oh)  line `fit' `xvars', sort , legend(off) ytitle( `yti')
>
> Accordingly, you would just need to take the exponential of the dependent variable and of the fitted value and redo the graph.  Something like this:
>
> metareg logHRa eGFR, wsse(SElogHRa) eform graph
> predict fit
> gen HRa=exp(logHRa)   // or use the actual value of HR if you have it already
> gen efit=exp(fit)
> gen size=1/SElogHRa
> scatter HRa eGFR [aw=size], msymbol(oh)   || line efit eGFR, sort   ||, legend(off) ytitle(HRa)
>
> Whether this is an appropriate way to do meta-analysis of hazard ratios is another story (one which I'm not qualified to comment on).
>
> Regards,
> Joe Canner
> Johns Hopkins University School of Medicine
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Claire Rushton
> Sent: Monday, March 31, 2014 2:19 PM
> To: [email protected]
> Subject: st: eform
>
> I am using the eform option for a bubble plot using metareg but the y
> axis is still showing the log hazard ratio - please advise?
>
> The command i have used is
>
> metareg logHRa eGFR, wsse(SElogHRa) eform graph
>
> The y axis still shows logHRa.
>
> Thanks
> Claire
> *
> *   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/
>
> *
> *   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/



-- 
Claire A Rushton
Lecturer in Nursing and NIHR Doctoral Research Fellow
Health Services Research Unit
Innovation Centre 1
Keele University
Staffordshire
ST5 5NB
Telephone: 01782 733768
Email: [email protected]
*
*   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