if (FALSE) { # rlang::is_installed("metafor")
# load libraries for models and data
library(metafor)
df <-
escalc(
measure = "RR",
ai = tpos,
bi = tneg,
ci = cpos,
di = cneg,
data = dat.bcg
)
meta_analysis <- rma(yi, vi, data = df, method = "EB")
tidy(meta_analysis)
}
Run the code above in your browser using DataLab