求助:用R做回归分析
2011-08-22 19:47:14 来自: 笑傲蜗牛
用R的lm()函数对数据进行了分析,summary()后的模型参数会出现很多:
Call:
lm(formula = col1 ~ age + I(age^2) + I(age^3) + I(age^4))
Residuals:
Min 1Q Median 3Q Max
-0.39664 -0.21942 -0.07608 0.18049 0.78404
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.013e+00 1.243e-01 24.238 3.41e-15 ***
age -2.046e-04 8.171e-05 -2.504 0.0221 *
I(age^2) 1.374e-08 1.113e-08 1.235 0.2328
I(age^3) -2.892e-13 5.007e-13 -0.578 0.5707
I(age^4) 1.340e-18 7.094e-18 0.189 0.8523
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.3166 on 18 degrees of freedom
Multiple R-squared: 0.5624, Adjusted R-squared: 0.4652
F-statistic: 5.783 on 4 and 18 DF, p-value: 0.003567
我只想要Adjusted R-squared这一项该怎么做?
查了提取模型参数的通用函数,但是好像没有这一个。
> 我来回应
这个小组的成员也喜欢去 · · · · · ·

- TeXperience (971)

- matlab (590)

- 人工智能 (2513)

- 离散数学 (3543)

- 图像处理中的数学问题 (571)

- 光通信 (224)
最新话题:
如何在ipad2上使用R (阿尼姆)
R版本问题 (佩恩氰)
I am a freshman... (铃儿)
R ※ Cookbook (roach)
求助:用R做回归分析 (笑傲蜗牛)
找到几本入门的书 (roach)
plot 似然函数出错 'x' and 'y' lengths differ (Gavin)
RStudio - A new R IDE (Vulpecula)
