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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/coef.mvmeta.R

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

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

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

Arguments

object

an object of class "mvmeta".

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

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

Example output

This is mvmeta 0.4.7. For an overview type: help('mvmeta-package').
                    PD          AL
(Intercept) -9.2815967 22.54141567
pubyear      0.0048615 -0.01153664
PD.(Intercept)     PD.pubyear AL.(Intercept)     AL.pubyear 
   -9.28159672     0.00486150    22.54141567    -0.01153664 
                    PD          AL
(Intercept) -9.2815967 22.54141567
pubyear      0.0048615 -0.01153664
                  Estimate  Std. Error          z  Pr(>|z|)     95%ci.lb
PD.(Intercept) -9.28159672 43.34201992 -0.2141478 0.8304318 -94.23039479
PD.pubyear      0.00486150  0.02185110  0.2224830 0.8239379  -0.03796587
AL.(Intercept) 22.54141567 59.43089463  0.3792878 0.7044741 -93.94099736
AL.pubyear     -0.01153664  0.02996352 -0.3850228 0.7002205  -0.07026406
                   95%ci.ub
PD.(Intercept)  75.66720134
PD.pubyear       0.04768887
AL.(Intercept) 139.02382870
AL.pubyear       0.04719078
               PD.(Intercept)    PD.pubyear AL.(Intercept)    AL.pubyear
PD.(Intercept)   1878.5306911 -0.9470696029   1353.8584254 -0.6825412353
PD.pubyear         -0.9470696  0.0004774707     -0.6825394  0.0003440999
AL.(Intercept)   1353.8584254 -0.6825394007   3532.0312359 -1.7807564623
AL.pubyear         -0.6825412  0.0003440999     -1.7807565  0.0008978126

mvmeta documentation built on Dec. 10, 2019, 5:07 p.m.