Learn R Programming

robust (version 0.3-4)

coef.lmfm: Extract Model Coefficients

Description

Extract the model coefficients from an lmfm object.

Usage

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

Arguments

object
an lmfm 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(stack.dat)
stack.fm <- fit.models(list(Robust = "lmRob", LS = "lm"), Loss ~ ., data = stack.dat)
coef(stack.fm)

Run the code above in your browser using DataLab