Learn R Programming

mariposa (version 0.7.3)

print.linear_regression: Print linear regression results (compact)

Description

Compact print method for objects of class "linear_regression". Shows R-squared, adjusted R-squared, F statistic, and p-value.

For the full detailed output, use summary().

Usage

# S3 method for linear_regression
print(x, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "linear_regression" returned by linear_regression.

...

Additional arguments (not used).

Examples

Run this code
result <- linear_regression(survey_data, life_satisfaction ~ age + income)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab