# NOT RUN {
### copy BCG vaccine data into 'dat'
dat <- dat.bcg
### calculate log risk ratios and corresponding sampling variances
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat,
slab=paste(author, ", ", year, sep=""))
### random-effects model
res <- rma(yi, vi, data=dat)
# }
# NOT RUN {
### generate pdf report
reporter(res)
# }
Run the code above in your browser using DataCamp Workspace