### load BCG vaccine data
data(dat.bcg)
### meta-analysis of the log relative risks using a random-effects model
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg,
data=dat.bcg, measure="RR", method="REML")
### confidence interval for the total amount of heterogeneity
confint(res)
### mixed-effects model with absolute latitude in the model
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, mods=ablat,
data=dat.bcg, measure="RR", method="REML")
### confidence interval for the residual amount of heterogeneity
confint(res)
Run the code above in your browser using DataLab