|
这个没有什么奇怪的, 你没有搞清楚这里检验结果的意义. 因为你的模型是错的, 检验给出了在当前这个错误的模型下, 截距项显著非零, 如果你用正确的模型就会看到检验说明此时截距显著的为零:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-1.0843407 -0.2499349 0.0006604 0.2542515 1.1183751
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.019273 0.093312 0.207 0.837
x 1.999046 0.001604 1246.138 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.4631 on 98 degrees of freedom
Multiple R-squared: 0.9999, Adjusted R-squared: 0.9999
F-statistic: 1.553e+06 on 1 and 98 DF, p-value: < 2.2e-16
|