jndxc168
我用的SAS软件是9.0版本的.....
在最近做多元线性回归时,输入下面程序:
data bingren;
input xi1 xi2 xi3 yi;
cards;
50 51 2.3 48
36 46 2.3 57
40 48 2.2 66
41 44 1.8 70
28 43 1.8 89
49 54 2.9 36
42 50 2.2 46
45 48 2.4 54
52 62 2.9 26
29 50 2.1 77
29 48 2.4 89
43 53 2.4 67
38 55 2.2 47
34 51 2.3 51
53 54 2.2 57
36 49 2 66
33 56 2.5 79
29 46 1.9 88
33 49 2.1 60
55 51 2.4 49
29 52 2.3 77
44 58 2.9 52
43 50 2.3 60
;
run;
proc reg data=bingren; model yi=xi1 xi2 xi3/selection=CP;
run;
出现了下面的错误提示:
285 data bingren;
286 input xi1 xi2 xi3 yi;
287 cards;
NOTE: 数据集 WORK.BINGREN 有 23 个观测和 4 个变量。
NOTE: DATA 语句 所用时间(总处理时间):
实际时间 0.00 秒
CPU 时间 0.00 秒
311 ;
312 run;
313 proc reg data=bingren;
314 model yi=xi1 xi2 xi3/selection=cp;
315 run;
ERROR: =
不知道哪位高手知道是怎么回事?谢谢了~
jndxc168
如果用分析员则会出现:
your analysis did not produce text result.
Please examin the SAS log for additional information to help dignose the problem.
不知道是什么原因呢?
Zihuatanejo
我这里运行是正常的,结果也没有问题,是不是你的SAS本身的问题??
loic
Number in
Model C(p) R-Square Variables in Model
2 2.4951 0.6641 xi1 xi2
2 2.6579 0.6613 xi1 xi3
3 4.0000 0.6727 xi1 xi2 xi3
1 4.2995 0.5986 xi1
1 17.9865 0.3628 xi3
2 18.1200 0.3949 xi2 xi3
1 19.0131 0.3451 xi2
你的code没问题!
天开
The REG Procedure
Model: MODEL1
Dependent Variable: yi
C(p) Selection Method
Number in
Model C(p) R-Square Variables in Model
2 2.4951 0.6641 xi1 xi2
2 2.6579 0.6613 xi1 xi3
3 4.0000 0.6727 xi1 xi2 xi3
1 4.2995 0.5986 xi1
1 17.9865 0.3628 xi3
2 18.1200 0.3949 xi2 xi3
1 19.0131 0.3451 xi2
这里运行没有问题。
王笑权