coef.mixmeta function

Extract Coefficients and (Co)Variance Matrix from mixmeta Objects

Extract Coefficients and (Co)Variance Matrix from mixmeta Objects

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".

## 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.

Returns

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

# 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)
  • Maintainer: Antonio Gasparrini
  • License: GPL (>= 2)
  • Last published: 2021-10-16