Learn R Programming

manymome (version 0.2.7)

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, betaselect = FALSE, ci = FALSE, level = 0.95, ...)

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

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().

betaselect

If TRUE, standardized coefficients are computed and included in the printout. Only numeric variables will be computed, and any derived terms, such as product terms, will be formed after standardization. Default is FALSE.

ci

If TRUE, confidence interval based on t statistic and standard error will be computed and added to the output. Default is FALSE.

level

The level of confidence of the confidence interval. Ignored if ci is not TRUE.

...

Other arguments. Not used.

x

An object of class summary_lm_list.

digits

The number of significant digits in printing numerical results.

digits_decimal

The number of digits after the decimal in printing numerical results. Default is NULL. If set to an integer, numerical results in the coefficient table will be printed according this setting, and digits will be ignored.

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