Learn R Programming

fit.models (version 0.64)

summary.lmfm: Comparison Summaries for Linear Regression Models

Description

Compute a summary of each model in an lmfm object.

Usage

# S3 method for lmfm
summary(object, correlation = FALSE, ...)

Arguments

object

an lmfm object.

correlation

a logical value. If TRUE, the correlation matrices for the coefficients are included in the summaries.

additional arguments required by the generic summary function.

Value

a list with class summary.lmfm whose elements are summaries of each model in object.

Examples

Run this code
# NOT RUN {
data(stackloss)
m1 <- lm(stack.loss ~ ., data = stackloss)
m2 <- lm(stack.loss ~ . - Acid.Conc., data = stackloss)

fm <- fit.models(m1, m2)
print(fm.sum <- summary(fm))
# }

Run the code above in your browser using DataLab