info.lm: Model Summary for an 'lm' Object

View source: R/info.lm.R

info.lmR Documentation

Model Summary for an 'lm' Object

Description

Extended summary information for an object of class "lm".

Usage

## S3 method for class 'lm'
info(x)

Arguments

x

an object of class "lm"

Details

The function info.lm produces a summary for a linear model fitted with the lm or regress function. There are five sections.

Overall

Model formula, data frame, and sample size (N).

Fit Indices

R squared, adjusted R squared, Akaike's information criterion (AIC), root mean square error (RMSE), and mean absolute deviation (MAE).

Omnibus Test

F-statistic, degrees of freedom, p-value.

Analysis of Variance

ANOVA table with type III (marginal) effects.

Regression Coefficients

Regression coefficients (B), standardized regression coefficients (B*) standard errors (SE), t-values, and p-values.

The ANOVA table is obtained from the Anova function in the car package. The standardized regression coefficients are obtained for the lm.beta function in the lm.beta package.

Value

A list of class c("info.lm", "list").

  • overall

  • fit.indices

  • F.test

  • anova.table

  • coefficient.table

See Also

print.info.lm

Examples

fit <- lm(mpg ~ hp + wt + accel + origin, data = auto_mpg)
info(fit)

Rkabacoff/qacReg documentation built on Aug. 1, 2022, 11:11 p.m.