Skip to content

[R-meta] "Favours experimental/vaccinated", "Favours control" - Metafor

4 messages · Andrzej Andrzej, Michael Dewey, Wolfgang Viechtbauer

#
Hi,
Why when I calculated log(RR) by hand (still using bcg data):

library(metafor)
# Define the data
tpos <- sum(dat.bcg$tpos)
tneg <- sum(dat.bcg$tneg)
cpos <- sum(dat.bcg$cpos)
cneg <- sum(dat.bcg$cneg)
# Calculate RR
RR <- (tpos / (tpos + tneg)) / (cpos / (cpos + cneg))
# Calculate log RR
log_RR <- log(RR)

log((1065 / (1065 + 189999)) / (1510 / (1510 + 164773)))   equals to
-0.4880521,
but doing everything like in your tutorial (escalc, rma, forest) ), it
gives me value of -0.71, that is displayed under forest plot in RE Model
row ?
Why is the difference ? What am I missing ?
https://wviechtb.github.io/metafor/reference/forest.rma.html
best regards,
Andrzej

pon., 30 pa? 2023 o 19:06 Viechtbauer, Wolfgang (NP) <
wolfgang.viechtbauer at maastrichtuniversity.nl> napisa?(a):

  
  
#
Dear Andrzej

I am afraid your post and the calculation shows that you have not 
understood what meta-analysis is trying to do. Aggregating the values in 
each column and computing log(RR) is not what meta-analysis does.

I think you need to go back to the tutorial material you used when 
learning about meta-analysis and re-read it as otherwise you are in 
danger of mis-leading yourself again.

Michael
On 01/11/2023 07:55, Andrzej Andrzej via R-sig-meta-analysis wrote:

  
    
#
Hi,
Is there a way using escalc function to get CI for log RR as well, apart
from log RR itself ?
I would like to get RR with CI too. Is it a way to do it and append it all
to bcg data ?
bets,
Andrzej

?r., 1 lis 2023 o 14:50 Michael Dewey <lists at dewey.myzen.co.uk> napisa?(a):

  
  
#
If you use summary() on an 'escalc' object, you get the CIs.

Best,
Wolfgang