coef.mixmeta {mixmeta} | R Documentation |
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 class 'mixmeta'
coef(object, format=c("vector","matrix"), ...)
## S3 method for class 'mixmeta'
vcov(object, ...)
Arguments
object |
an object of class |
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
# 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)
[Package mixmeta version 1.2.0 Index]