coef.mvmeta {mvmeta} | R Documentation |
Extract Coefficients and (Co)Variance Matrix from mvmeta Objects
Description
These method functions return the estimated fixed-effects coefficients and their (co)variance matrix for fitted univariate or multivariate meta-analytical models represented in objects of class "mvmeta"
.
Usage
## S3 method for class 'mvmeta'
coef(object, format=c("vector","matrix"), ...)
## S3 method for class 'mvmeta'
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
, a vector (default) or matrix with the estimated fixed-effects coefficients. The matrix-structure is used to store the fixed-effects coefficients in mvmeta
objects, and is preserved if format="matrix"
.
For vcov
, the (co)variance matrix of the estimated fixed-effects coefficients.
Author(s)
Antonio Gasparrini, antonio.gasparrini@lshtm.ac.uk
See Also
See mvmeta-package
for an overview of the package and modelling framework.
Examples
# RUN THE MODEL
model <- mvmeta(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 mvmeta version 1.0.3 Index]