coef.mixmeta {mixmeta} | R Documentation |
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, ...)
object |
an object of class |
format |
format of the returned object. |
... |
further arguments passed to or from other methods. |
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.
Antonio Gasparrini <antonio.gasparrini@lshtm.ac.uk>
See mixmeta-package
for an overview of the package and modelling framework.
# 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)