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

Description Usage Arguments Value Author(s) See Also Examples

Description

These method functions return the estimated fixed-effects coefficients and their (co)variance matrix for fitted dose-response meta-analytical models represented in objects of class "dosresmeta".

Usage

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

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

Arguments

object

an object of class "dosresmeta".

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. For vcov, the (co)variance matrix of the estimated (fixed-effects) coefficients.

Author(s)

Alessio Crippa, alessio.crippa@ki.se

See Also

dosresmeta, coef, vcov, logLik.dosresmeta

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Load data and run the model
data("alcohol_cvd")
model <- dosresmeta(formula = logrr ~ dose + I(dose^2), type = type, id = id,
                   se = se, cases = cases, n = n, data = alcohol_cvd) 

## Fixed-effect coefficients
coef(model)

## Fixed-effect (co)variance matrix
vcov(model)

dosresmeta documentation built on May 2, 2019, 6:30 a.m.