全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3648 3
2011-01-18
请教PROC GLM里如何 输出R² (coefficient of determination), 只会把solution算出的t值输出:

proc glm
class a;
model y=x a/solution;
ods output parameterestimates=glmp;
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-1-21 10:45:18
如果你把model statement里的/solution 去掉,默认的输出里就有R2

或者把solution后面加上ss3 (也可能是ss1或者ss2,记不清了,sorry)你可以试一下
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-21 12:31:57
proc statement后加outstat=吧?去查查吧!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-22 09:57:08
OUTSTAT=SAS-data-set
names an output data set that contains sums of squares, degrees of freedom, F statistics, and probability levels for each effect in the model, as well as for each CONTRAST that uses the overall residual or error mean square (MSE) as the denominator in constructing the F statistic. If you use the CANONICAL option in the MANOVA statement and do not use an M= specification in the MANOVA statement, the data set also contains results of the canonical analysis.
这个是我查到的,没看到有R2。不过有数据的话,运行一下就知道了。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群