summary.lm(object, correlation=FALSE)
"lm"
.
The components returned by the
lm
function must be available in
object
.
TRUE
,
the correlation matrix for the coefficients is included in the summary.
correlation=TRUE
was set.
cov.unscaled
by an estimate
of the error variance produces an estimated covariance matrix
for the coefficients.
terms
object used in fitting the model.
object
, but with the arguments all named and with the actual formula included as the
formula
argument.
This function is a method for the generic function
summary
for the class "lm".
It can be invoked by calling
summary
with an object of the appropriate class.
Alternatively, it can be invoked directly
by calling
summary.lm
regardless
of the class of the object.
summary(lm(stack.loss ~ stack.x[,1]), cor=T) # Produces the following output: # # Call: lm(formula = stack.loss ~ stack.x[, 1]) # Residuals: # Min 1Q Median 3Q Max # -12.29 -1.127 -0.04592 1.117 8.873 # # Coefficients: # Value Std. Error t value Pr(>|t|) # (Intercept) -44.1320 6.1059 -7.2278 0.0000 # stack.x[, 1] 1.0203 0.1000 10.2079 0.0000 # # Residual standard error: 4.098 on 19 degrees of freedom # Multiple R-Squared: 0.8458 Adjusted R-squared: 0.8377 # F-statistic: 104.2 on 1 and 19 degrees of freedom, # the p-value is 3.774e-009 # # Correlation of Coefficients: # (Intercept) # stack.x[, 1] -0.9892