data exposure.ex2;
do x=1 to 4;
do y=1 to 3;
input a@@;
output;
end;
end;
cards;
114 5 9
168 19 17
128 10 11
56 11 16
;
proc freq data=exposure.ex2;
tables x*y/ nopct nocol trend;
weight a;
run;
光出一个 表的结果,trend语句没出来结果,感觉没写错啊,咋回事呢
x y
频数 |
百分比 |
行百分比| 1| 2| 3| 合计
--------+--------+--------+--------+
1 | 114 | 5 | 9 | 128
| 20.21 | 0.89 | 1.60 | 22.70
| 89.06 | 3.91 | 7.03 |
--------+--------+--------+--------+
2 | 168 | 19 | 17 | 204
| 29.79 | 3.37 | 3.01 | 36.17
| 82.35 | 9.31 | 8.33 |
--------+--------+--------+--------+
3 | 128 | 10 | 11 | 149
| 22.70 | 1.77 | 1.95 | 26.42
| 85.91 | 6.71 | 7.38 |
--------+--------+--------+--------+
4 | 56 | 11 | 16 | 83
| 9.93 | 1.95 | 2.84 | 14.72
| 67.47 | 13.25 | 19.28 |
--------+--------+--------+--------+
合计 466 45 53 564
82.62 7.98 9.40 100.00



雷达卡



京公网安备 11010802022788号







