Learn R Programming

manymome (version 0.2.3)

summary.lm_list: Summary of an lm_list-Class Object

Description

The summary of content of the output of lm2list().

Usage

# S3 method for lm_list
summary(object, ...)

# S3 method for summary_lm_list print(x, digits = 3, ...)

Value

summary.lm_list() returns a summary_lm_list-class object, which is a list of the summary() outputs of the lm() outputs stored.

print.summary_lm_list() returns x

invisibly. Called for its side effect.

Arguments

object

The output of lm2list().

...

Other arguments. Not used.

x

An object of class summary_lm_list.

digits

The number of significant digits in printing numerical results.

Functions

  • print(summary_lm_list): Print method for output of summary for lm_list.

Examples

Run this code

data(data_serial_parallel)
lm_m11 <- lm(m11 ~ x + c1 + c2, data_serial_parallel)
lm_m12 <- lm(m12 ~ m11 + x + c1 + c2, data_serial_parallel)
lm_m2 <- lm(m2 ~ x + c1 + c2, data_serial_parallel)
lm_y <- lm(y ~ m11 + m12 + m2 + x + c1 + c2, data_serial_parallel)
# Join them to form a lm_list-class object
lm_serial_parallel <- lm2list(lm_m11, lm_m12, lm_m2, lm_y)
lm_serial_parallel
summary(lm_serial_parallel)

Run the code above in your browser using DataLab