楼主: 木土昕
2550 1

sas 非线性回归求决定系数 [推广有奖]

  • 0关注
  • 1粉丝

已卖:274份资源

本科生

24%

还不是VIP/贵宾

-

威望
0
论坛币
503 个
通用积分
1.3858
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
625 点
帖子
21
精华
0
在线时间
104 小时
注册时间
2013-11-2
最后登录
2024-6-20

楼主
木土昕 发表于 2014-5-26 22:28:54 |AI写论文
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 ...
关键词:非线性回归 线性回归 非线性 SAS9 有没有

沙发
bobguy 发表于 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;

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 15:33