Learn R Programming

metafor (version 1.4-0)

vcov.rma: Variance-Covariance Matrix of Parameter Estimates for rma Objects

Description

The function extracts the (estimated) variance-covariance matrix of the fixed effects parameter estimates from objects of class "rma".

Usage

## S3 method for class 'rma':
vcov(object, \dots)

Arguments

object
an object of class "rma".
...
other arguments.

Value

  • A matrix corresponding to the variance-covariance matrix.

References

Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1--48. http://www.jstatsoft.org/v36/i03/.

See Also

rma.uni, rma.mh, rma.peto

Examples

Run this code
### load BCG vaccine data
data(dat.bcg)

### meta-analysis of the log relative risks 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)

Run the code above in your browser using DataLab