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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/coef.mixmeta.R

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

1
2
3
4
5
## S3 method for class 'mixmeta'
coef(object, format=c("vector","matrix"), ...)

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

Arguments

object

an object of class "mixmeta".

format

format of the returned object.

...

further arguments passed to or from other methods.

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.

Author(s)

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

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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)

mixmeta documentation built on Oct. 16, 2021, 5:09 p.m.