| vcov.rma {metafor} | R Documentation |
The function extracts the (estimated) variance-covariance matrix of the fixed effects parameter estimates from objects of class "rma".
## S3 method for class 'rma': vcov(object, ...)
object |
an object of class "rma". |
... |
other arguments. |
A matrix corresponding to the variance-covariance matrix.
Wolfgang Viechtbauer; wvb@www.wvbauer.com; http://www.wvbauer.com/
### load BCG vaccine data
data(dat.bcg)
### meta-analysis of the log risk ratios using a mixed-effects model
### with two moderators (absolute latitude and publication year)
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, mods=cbind(ablat, year),
data=dat.bcg, measure="RR", method="REML")
vcov(res)