全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1485 4
2013-12-10
1. 问问题是不是选<疑难解惑>??

2. 如果在proc tabulate里面使用class variable crossed with itself,就会出现WARNING: A class variable is crossed with itself in the table statement at line 1106.

比如下面这个例子,
proc tabulate data=sashelp.class;
class age sex;
var weight height;
table (sex all) (age all), (sex*rowpctn='' age*rowpctn='' weight*mean height*mean);
run;

log:
WARNING: A class variable is crossed with itself in the table statement at line 1264.  This may cause unpredictable results.
WARNING: A class variable is crossed with itself in the table statement at line 1264.  This may cause unpredictable results.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: PROCEDURE TABULATE used (Total process time):
      real time           0.15 seconds
      cpu time            0.06 seconds

Output:

 

Sex

Age

Weight

Height

F

M

11

12

13

14

15

16

Mean

Mean

Sex

100

.

11.11

22.22

22.22

22.22

22.22

.

90.11

60.59

F

M

.

100

10

30

10

20

20

10

108.95

63.91

All

47.37

52.63

10.53

26.32

15.79

21.05

21.05

5.26

100.03

62.34

Age

50

50

100

.

.

.

.

.

67.75

54.4

11

12

40

60

.

100

.

.

.

.

94.4

59.44

13

66.67

33.33

.

.

100

.

.

.

88.67

61.43

14

50

50

.

.

.

100

.

.

101.88

64.9

15

50

50

.

.

.

.

100

.

117.38

65.63

16

.

100

.

.

.

.

.

100

150

72

All

47.37

52.63

10.53

26.32

15.79

21.05

21.05

5.26

100.03

62.34



求教大虾~
二维码

扫码加我 拉你入群

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

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

全部回复
2013-12-10 15:14:22
这个问题这么困难啊??求帮助。
二维码

扫码加我 拉你入群

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

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

2013-12-10 22:30:19
继续求教,谢谢
二维码

扫码加我 拉你入群

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

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

2013-12-13 17:00:20
sas9.13亲测log正常~
二维码

扫码加我 拉你入群

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

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

2013-12-13 22:52:01
玛尔天堂 发表于 2013-12-13 17:00
sas9.13亲测log正常~
我是9.3呢。。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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