全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2511 1
2014-05-26
悬赏 10 个论坛币 已解决
sas9.2以下的版本有没有求决定系数的代码?如果没有求一份自己写的计算决定系数的代码。

最佳答案

bobguy 查看完整内容

As long as you understand the definition of R^2. It can be easily calculated from results. See attached example below. The R^2=10.8101/11.0384. ******************************************************************************** Sum of Mean Approx Source DF Squares Square F Value P ...
二维码

扫码加我 拉你入群

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

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

全部回复
2014-5-26 22:28:55
As long as you understand the definition of R^2. It can be easily calculated  from results. See attached example below.

The R^2=10.8101/11.0384.

********************************************************************************

                                             Sum of        Mean               Approx
           Source                    DF     Squares      Square    F Value    Pr > F

           Model                      2     10.8101      5.4050     662.72    <.0001
           Error                     28      0.2284     0.00816
           Uncorrected Total         30     11.0384


*********************************************************************************

data t1;
a=0.8; b=1;
do x=0.1 to 3 by 0.1;
y=a*(1-exp(-b*x)) + 0.1*rannor(123);
output;
end;
drop a b;
run;


ods graphics on;

proc nlin data=t1
NLINMEASURES plots(stats=all)=(diagnostics);

parms a=1 b=1;
model y=a*(1-exp(-b*x));
run;

ods graphics off;
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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