How to do it...

Perform the following step to summarize linear model fits:

  1. Compute a detailed summary of the fitted model:
        > summary(model)
Output:
Call:
lm(formula = income ~ prestige + women)
Residuals:
Min 1Q Median 3Q Max
-7620.9 -1008.7 -240.4 873.1 14180.0
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 431.574 807.630 0.534 0.594
prestige 165.875 14.988 11.067 < 2e-16 ***
women -48.385 8.128 -5.953 4.02e-08 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 2573 on 99 degrees of freedom
Multiple R-squared: 0.64, Adjusted R-squared: 0.6327
F-statistic: 87.98 on 2 and 99 DF, p-value: < 2.2e-16
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset