SAS中文论坛

标题: 帮我分析一下原因 [打印本页]

作者: shiyiming    时间: 2004-11-28 15:32
标题: 帮我分析一下原因
哪位大侠知道这个程序有什么问题吗?
我想求一个回归方程,但是就是求不出来啊,帮帮忙吧!!
谢谢

data FC;
input y x1 x2 x3;
cards;
0.457 10 15 160
0.394 20 25 220
0.451 30 35 140
0.437 40 10 200
0.432 50 20 120
0.428 60 30 180
.        70 20 240
;
proc stepwise;
model y=x1-x3/sle=0.05;
run;


我的邮箱是sun_long@sohu.com 可以信件联系!谢谢啦
作者: shiyiming    时间: 2004-11-28 18:52
标题: Re: 求:帮我分析一下原因
从你的语言可以看出来,你是个女生,你叫宋珑燕吗?
呵呵。
/////
SAS 系统                         18:49 Sunday, November 28, 2004   1

                                                    The STEPWISE Procedure
                                                         Model: MODEL1
                                                    Dependent Variable: y

                            No variable met the 0.0500 significance level for entry into the model.
运行了的,只是没有变量在0.05的阿尔法值下有显著性,所以,都不能进入方程。
我还是第一次知道stepwise可以直接做过程名运行。
作者: shiyiming    时间: 2004-11-28 19:02
标题: 谢谢
data FC;
input y x1 x2 x3;
cards;
0.457 10 15 160
0.394 20 25 220
0.451 30 35 140
0.437 40 10 200
0.432 50 20 120
0.428 60 30 180
. 70 20 240
;
proc stepwise;
model y=x1-x3/sle=0.05;
run;
哪如何可以求出来这个回归方程呢,这些数据是我的实验数据啊
帮一下好吗?
作者: shiyiming    时间: 2004-11-28 19:18
标题: 麻烦
麻烦如果是问问题就不要发短信给我。
直接在这里问就行。
有时我不太注意短信

呵呵,不是我们不帮你,连sas都不帮你。
我有什么办法
呵呵。
STEPWISE的意思就是在一定的阿尔法的限制下,选入一些变量为自变量来回归
默认是0.05.现在没有满意条件的。
你如果真的要有变量进来。
请改阿尔法值。
data FC;
input y x1 x2 x3;
cards;
0.457 10 15 160
0.394 20 25 220
0.451 30 35 140
0.437 40 10 200
0.432 50 20 120
0.428 60 30 180
. 70 20 240
;
run;

proc print;
run;

proc stepwise ;
model y=x1-x3/sle=0.2;*我改成0.1也进不来,改为0.2就进来了;
run;


、、、、、
  Summary of Stepwise Selection

                       Variable     Variable     Number     Partial      Model
               Step    Entered      Removed      Vars In    R-Square    R-Square     C(p)      F Value    Pr > F

                 1     x3                            1       0.3951      0.3951      0.4374       2.61    0.1813
                 2                  x3               0       0.3951      0.0000      0.0297       2.61    0.1813
作者: shiyiming    时间: 2004-11-28 19:27
标题: 呵呵
不好意思
HTML对不齐。
你也看不清楚。
x3被选进来,然后又被选出去了。
还得多加一条
data FC;
input y x1 x2 x3;
cards;
0.457 10 15 160
0.394 20 25 220
0.451 30 35 140
0.437 40 10 200
0.432 50 20 120
0.428 60 30 180
. 70 20 240
;
run;

proc print;
run;

proc stepwise ;
model y=x1-x3/sle=0.2 sls=0.2;*这里定的;
run;
///////////////////
这样才不会被剔出去。结果不粘了。
反正你看不出,格式是乱的。
作者: shiyiming    时间: 2004-11-30 03:16
标题: to ahuige
您干脆单开一个“SAS与统计应用”的板块算了。也省得大家发短信麻烦。众望所归呀
作者: shiyiming    时间: 2004-11-30 06:41
标题: re
You will have to increase the significant level like what ahuige did. Since both p-values are >0.18 you'd better set the level to 0.2 to let the variable into the model, otherwise both of them will be discarded.
作者: shiyiming    时间: 2004-11-30 12:20
标题: re
这个回归这么差,干吗还勉强拟合呢。




欢迎光临 SAS中文论坛 (http://mysas.net/forum/) Powered by Discuz! X3.2