Learn R Programming

robust (version 0.3-0)

coef.glmfm: Extract Model Coefficients

Description

Extract the model coefficients from a glmfm object.

Usage

## S3 method for class 'glmfm':
coef(object, ...)

Arguments

object
a glmfm object.
...
additional arguments required by the generic coef function.

Value

  • a numeric matrix with one row for each model in object and one column for each coefficient in the model.

Examples

Run this code
data(breslow.dat)
bres.fm <- fit.models(list(Robust = "glmRob", Classical = "glm"),
                      formula = sumY ~ Age10 + Base4*Trt,
                      family = poisson(), data = breslow.dat)
coef(bres.fm)

Run the code above in your browser using DataLab