Skip to content
Prev 4946 / 5636 Next

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

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

  
  
Message-ID: <CAKeUzcXAo1P9FggaCxxoAn_HeWnpeLKE_YrrPVePHC3+_LYpCw@mail.gmail.com>
In-Reply-To: <AS8PR08MB9193C75C517720A2477E671A8BA1A@AS8PR08MB9193.eurprd08.prod.outlook.com>