info.lm | R Documentation |
Extended summary information for an object of class "lm"
.
## S3 method for class 'lm' info(x)
x |
an object of class |
The function info.lm
produces a summary for a
linear model fitted with the lm
or
regress
function. There are five sections.
Model formula, data frame, and sample size (N).
R squared, adjusted R squared, Akaike's information criterion (AIC), root mean square error (RMSE), and mean absolute deviation (MAE).
F-statistic, degrees of freedom, p-value.
ANOVA table with type III (marginal) effects.
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.
A list of class c("info.lm"
, "list"
).
overall
fit.indices
F.test
anova.table
coefficient.table
print.info.lm
fit <- lm(mpg ~ hp + wt + accel + origin, data = auto_mpg) info(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.