Learn R Programming

mixmeta (version 1.2.0)

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

Description

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

Usage

# S3 method for mixmeta
coef(object, format=c("vector","matrix"), ...)

# S3 method for mixmeta vcov(object, ...)

Value

For coef, by default a vector (default)with the estimated fixed-effects coefficients. For multivariate models, a matrix can also be returned.

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

Arguments

object

an object of class "mixmeta".

format

format of the returned object.

...

further arguments passed to or from other methods.

Author

Antonio Gasparrini <antonio.gasparrini@lshtm.ac.uk>

See Also

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

Examples

Run this code
# RUN THE MODEL
model <- mixmeta(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