Like this example, it shows (Intercept) and x, why not slope? And I'm not sure x means what?
x <- c(1,4,12,34,86,99)
y <- c(12, 48, 500, 1000, 1200,3242)
plot(x, y)
lm(y~x)
Coefficients:
(Intercept) x
27.65 24.73
summary(lm(formula = y ~ x))
Call:
lm(formula = y ~ x)
Residuals:
1 2 3 4 5 6
-40.38 -78.57 175.60 131.56 -954.36 766.16
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 27.652 360.332 0.077 0.9425
x 24.729 6.487 3.812 0.0189 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 623.2 on 4 degrees of freedom
Multiple R-squared: 0.7842, Adjusted R-squared: 0.7302
F-statistic: 14.53 on 1 and 4 DF, p-value: 0.0189