Learn R Programming

metaSEM (version 0.9.10)

vcov: Extract Covariance Matrix Parameter Estimates from Various Objects

Description

It extracts the variance-covariance matrix of the parameter estimates from either tssem1FEM, tssem1FEM.cluster, tssem1REM, wls, wls.cluster, meta, meta3X, reml or MxRAMModel objects.

Usage

"vcov"(object, ...) "vcov"(object, ...) "vcov"(object, select = c("all", "fixed", "random"), ...) "vcov"(object, R=50, ...) "vcov"(object, R=50, ...) "vcov"(object, select = c("all", "fixed", "random"), ...) "vcov"(object, select = c("all", "fixed", "random", "allX"), ...) "vcov"(object, ...) "vcov"(object, ...)

Arguments

object
An object returned from either class tssem1FEM, class tssem1FEM.cluster, class tssem1REM, class wls, class wls.cluster, class meta, class reml or class MxRAMModel
select
Select all for both fixed- and random-effects parameters, fixed for the fixed-effects parameters or random for the random-effects parameters. For meta3X objects, allX is used to extract all parameters including the predictors and auxiliary variables.
R
Positive integer. The number of parameter bootstrap replicates when diag.constraints=TRUE.
...
Further arguments; currently none is used

Value

See Also

tssem1, wls, meta, reml

Examples

Run this code
## Random-effects meta-analysis
model1 <- meta(y=yi, v=vi, data=Hox02)
vcov(model1)

## Fixed-effects only
vcov(model1, select="fixed")

## Random-effects only
vcov(model1, select="random")

Run the code above in your browser using DataLab