Learn R Programming

dosresmeta (version 1.3.2)

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

Description

Extract Coefficients and (Co)Variance Matrix from dosresmeta Objects

Usage

"coef"(object, format = c("vector", "matrix"), ...)
"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.

See Also

dosresmeta, coef, vcov

Examples

Run this code
## 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)

Run the code above in your browser using DataLab