data test;
input level $ factor $ cout;
datalines;
1 全无 2
1 稍微 2
1 中等 1
1 较为 20
1 非常 5
2 全无 1
2 稍微 7
2 中等 5
2 较为 10
2 非常 7
3 全无 11
3 稍微 9
3 中等 1
3 较为 4
3 非常 5
;
run;
proc freq data=test;
weight cout;
table level*factor/cmh scores=rank ;
exact scorr;
run;