Learn R Programming

mvmeta (version 1.0.3)

coef.mvmeta: Extract Coefficients and (Co)Variance Matrix from mvmeta Objects

Description

These method functions return the estimated fixed-effects coefficients and their (co)variance matrix for fitted univariate or multivariate meta-analytical models represented in objects of class "mvmeta".

Usage

# S3 method for mvmeta
coef(object, format=c("vector","matrix"), …)

# S3 method for mvmeta vcov(object, …)

Arguments

object

an object of class "mvmeta".

format

format of the returned object.

further arguments passed to or from other methods.

Value

For coef, a vector (default) or matrix with the estimated fixed-effects coefficients. The matrix-structure is used to store the fixed-effects coefficients in mvmeta objects, and is preserved if format="matrix".

For vcov, the (co)variance matrix of the estimated fixed-effects coefficients.

See Also

See mvmeta-package for an overview of the package and modelling framework.

Examples

Run this code
# NOT RUN {
# RUN THE MODEL
model <- mvmeta(cbind(PD,AL)~pubyear,S=berkey98[5:7],data=berkey98)

# COEFFICIENTS
model$coef
coef(model)
coef(model,format="matrix")
summary(model)$coef

# (CO)VARIANCE MATRIX
vcov(model)
# }

Run the code above in your browser using DataLab