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]
st: RE: eform
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: RE: eform
Date
Mon, 31 Mar 2014 19:58:45 +0000
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/