Learn R Programming

mariposa (version 0.7.3)

summary.linear_regression: Summary method for linear regression results

Description

Creates a summary object that produces detailed output when printed, including model summary, ANOVA table, and coefficient table.

Usage

# S3 method for linear_regression
summary(
  object,
  model_summary = TRUE,
  anova_table = TRUE,
  coefficients = TRUE,
  conf_int = TRUE,
  collinearity = TRUE,
  descriptives = TRUE,
  digits = 3,
  ...
)

Value

A summary.linear_regression object.

Arguments

object

A linear_regression result object.

model_summary

Logical. Show model summary (R, R-squared)? (Default: TRUE)

anova_table

Logical. Show ANOVA table? (Default: TRUE)

coefficients

Logical. Show coefficients table? (Default: TRUE)

conf_int

Logical. Show the confidence-interval columns for B in the coefficients table (SPSS /STATISTICS CI)? The interval level is the conf.level passed to linear_regression. (Default: TRUE)

collinearity

Logical. Show collinearity diagnostics (Tolerance, VIF per model term)? (Default: TRUE)

descriptives

Logical. Show the Descriptive Statistics table (Mean, SD, N for the dependent and predictor variables)? (Default: TRUE)

digits

Number of decimal places for formatting (Default: 3).

...

Additional arguments (not used).

See Also

linear_regression for the main analysis function.

Examples

Run this code
result <- linear_regression(survey_data, life_satisfaction ~ age + trust_government)
summary(result)
summary(result, descriptives = FALSE)
summary(result, conf_int = FALSE)   # hide the CI columns

Run the code above in your browser using DataLab