<div dir="ltr"><div dir="ltr">Hello Wolfgang, <div><br></div><div>thank you, and apologies - mailing list is now cc'ed in. </div><div><br></div><div>What confuses me, however, it that for the average the numbers on the right seem to indicate the log odds ratio (i.e. 0), but the poly in the graph seems to show the odds ratio (i.e. 1) - I would have expected these to be congruent? </div><div><br></div><div>Also, for "Study 1" and "Study 2",  do the numbers and the graph display the odds ratio or log odds ratio? Based on the numbers and the back transformation I am assuming the odds ratio? </div><div><br></div><div>Thank you very much! </div><div><br></div><div>All the best, Antonia</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 9 Mar 2020 at 15:31, Viechtbauer, Wolfgang (SP) <<a href="mailto:wolfgang.viechtbauer@maastrichtuniversity.nl">wolfgang.viechtbauer@maastrichtuniversity.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Please always cc the mailing list.<br>
<br>
For log odds ratios, the CI can be negative. After back-transformation (i.e., exponentiation), the CI will be >= 0.<br>
<br>
Similarly, the estimated average log odds ratio is 0 in the example. Hence, after back-transformation, the estimate will be 1 (exp(0) = 1).<br>
<br>
Best,<br>
Wolfgang<br>
<br>
-----Original Message-----<br>
From: Antonia Sudkaemper [mailto:<a href="mailto:a.sudkaemper@gmail.com" target="_blank">a.sudkaemper@gmail.com</a>] <br>
Sent: Monday, 09 March, 2020 15:05<br>
To: Viechtbauer, Wolfgang (SP)<br>
Subject: Re: [R-meta] logarithmic scale in forest plot<br>
<br>
Hello Wolfgang, <br>
<br>
I just ran this with our data and it seems to work - thank you so much! <br>
<br>
I just noticed that both in your example as well as with our data the mean weighted effect size lower CI is below 0 - does that make sense?<br>
<br>
Also, in your example and similar with our data, it says 0.00 as mean weighted effect size, but shows up in the graph at 1. Is that correct?<br>
<br>
Thanks again for your help. <br>
<br>
All the best, Antonia<br>
<br>
On Wed, 4 Mar 2020 at 15:56, Viechtbauer, Wolfgang (SP) <<a href="mailto:wolfgang.viechtbauer@maastrichtuniversity.nl" target="_blank">wolfgang.viechtbauer@maastrichtuniversity.nl</a>> wrote:<br>
Dear Antonia,<br>
<br>
You should use log odds ratios as input. In fact, we never meta-analyze the odds ratios directly, because they are not 'symmetric' around 1. For example, an OR of 2 in favor of the treatment group corresponds to an OR of 1/2 = 0.5 in favor of the control group, so if one were to combine these two ORs (assuming equal weights), one would end up with a combined OR of 1.25 in favor of the treatment group, but this is not logical if the two ORs are exact opposites of each other. On the other hand, after log transformation, we get log(2) = 0.6931472 and log(0.5) = -0.6931472, which are now symmetric around 0. Hence, the combined log OR is 0 and, after back-transforming (i.e., exponentiation), we get exp(0) = 1, which makes sense.<br>
<br>
Also, how were those standard errors (sei) computed? Are they really SEs of the ORs? In most cases, the SEs we can extract from papers are for the log odds ratios.<br>
<br>
But to answer your question, here is how it's done. Plot the log odds ratios and then use atransf=exp, which in essence puts the the x-axis on a log scale. An example:<br>
<br>
yi  <- log(c(2, 0.5))<br>
sei <- c(.20, .20)<br>
forest(yi, sei=sei, atransf=exp, ylim=c(-0.5,5))<br>
res <- rma(yi, sei=sei, method="FE")<br>
addpoly(res, row=0)<br>
<br>
(And I just saw that Michael has also answered with the same concern about the use of the ORs.)<br>
<br>
Best,<br>
Wolfgang<br>
<br>
-----Original Message-----<br>
From: R-sig-meta-analysis [mailto:<a href="mailto:r-sig-meta-analysis-bounces@r-project.org" target="_blank">r-sig-meta-analysis-bounces@r-project.org</a>] On Behalf Of Antonia Sudkaemper<br>
Sent: Wednesday, 04 March, 2020 15:37<br>
To: <a href="mailto:r-sig-meta-analysis@r-project.org" target="_blank">r-sig-meta-analysis@r-project.org</a><br>
Subject: [R-meta] logarithmic scale in forest plot<br>
<br>
Dear Metafor Community,<br>
<br>
I hope this email finds you well.<br>
<br>
I have a question regarding the metafor package. I made a forest plot using<br>
the code below. I have received feedback that, as the forest plot shows<br>
odds ratios I should use a log scale for the x axis rather than a linear<br>
scale, so that the CIs are symmetric around the natural log OR. I am not<br>
sure how I would achieve that? Could you help me out, please? I would much<br>
appreciate it.<br>
<br>
All the best, Antonia<br>
<br>
#race/ethnicity<br>
oddsratio = c(2.07, 0.90, 1.00, 0.82, 2.25, 0.92)<br>
sei <- c(.43, .32, .66, .50, .70, .44)<br>
<a href="http://ci.lb" rel="noreferrer" target="_blank">ci.lb</a> <- oddsratio - 1.96*sei<br>
ci.ub <- oddsratio + 1.96*sei<br>
study<-c("Aelenei et al., 2019", "Kulich et al., 2019a", "Kulich et al.,<br>
2006a", "Kulich et al., 2006b", "Ryan & Haslam, 2004a", "Ryan & Haslam,<br>
2004b")<br>
labels<-c(-2, 0, 2, 4, 6, 8)<br>
<br>
forest(oddsratio, <a href="http://ci.lb" rel="noreferrer" target="_blank">ci.lb</a>=<a href="http://ci.lb" rel="noreferrer" target="_blank">ci.lb</a>, ci.ub=ci.ub, showweights=TRUE, refline=1,<br>
xlab<br>
       = "Odds Ratio", slab=study, alim = c(-2,8), xlim=c(-14,15),<br>
at=labels, cex =<br>
         0.9, ylim=c(-2,27))<br>
addpoly(x = 1.16, <a href="http://ci.lb" rel="noreferrer" target="_blank">ci.lb</a>=0.69, ci.ub=1.95)<br>
<br>
-- <br>
Dr Antonia Sudkämper<br>
Researcher, OCR, Cambridge Assessment<br>
<br>
<a href="http://www.antoniasudkaemper.com" rel="noreferrer" target="_blank">www.antoniasudkaemper.com</a><br>
<a href="mailto:a.sudkaemper@gmail.com" target="_blank">a.sudkaemper@gmail.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Dr Antonia Sudkämper</div><div>Researcher, OCR, Cambridge Assessment</div><div><br><a href="http://www.antoniasudkaemper.com" target="_blank">www.antoniasudkaemper.com</a><br><a href="mailto:a.sudkaemper@gmail.com" target="_blank">a.sudkaemper@gmail.com</a><br><br><br><br><br><br><br><br><br><br><br><br></div></div></div>