# NOT RUN {
### meta-analysis of the log risk ratios using a mixed-effects model
### with two moderators (absolute latitude and publication year)
res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg,
mods = ~ ablat + year, data=dat.bcg)
vcov(res)
### marginal var-cov matrix of the observed log risk ratios
vcov(res, type="obs")
### var-cov matrix of the fitted values
vcov(res, type="fitted")
### var-cov matrix of the residuals
vcov(res, type="resid")
# }
Run the code above in your browser using DataLab