| 1 |
Call: |
| 2 |
lm(formula = y ~ x) |
| 3 |
|
| 4 |
Residuals: |
| 5 |
1 2 3 4 5 6 |
| 6 |
3.3333 -0.6667 -2.6667 -2.6667 -0.6667 3.3333 |
| 7 |
|
| 8 |
Coefficients: |
| 9 |
Estimate Std. Error t value Pr(>|t|) |
| 10 |
(Intercept) -9.3333 2.8441 -3.282 0.030453 * |
| 11 |
x 7.0000 0.7303 9.585 0.000662 *** |
| 12 |
--- |
| 13 |
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 |
| 14 |
|
| 15 |
Residual standard error: 3.055 on 4 degrees of freedom |
| 16 |
Multiple R-squared: 0.9583, Adjusted R-squared: 0.9478 |
| 17 |
F-statistic: 91.88 on 1 and 4 DF, p-value: 0.000662 |
| 18 |
|
| 19 |
> par(mfrow=c(2, 2)) # Request 2x2 plot layout |
| 20 |
> plot(lm_1) # Diagnostic plot of regression model |