xgnfly 发表于 2010-5-7 09:43 
bobguy 发表于 2010-5-7 08:55 
xgnfly 发表于 2010-5-7 08:28 
data a; input x1 x2 x3@@; cards; 80 12 120 60 5 156 56 6 250 56 15 350 58 23 360 77 35 450 40 25 359 65 18 368 56 6 250 56 15 350 58 23 360 77 35 450 40 25 359 45 16 389 66 18 400 ; run; 如何对连续性数据x1、x2、x3分别根据其数值大小对其分组求各自频数分布。
加@@
The histogram is what you want?
我想把柱形图对应的频数导入数据集,不想手工输入。
data a;
input x1 x2 x3@@;
cards;
80 12 120 60 5 156 56 6 250 56 15 350
58 23 360 77 35 450 40 25 359 65 18 368
56 6 250 56 15 350 58 23 360 77 35 450
40 25 359 45 16 389 66 18 400
;
run;
Is this what you need?
proc freq noprint;
tables x1 /nopercent out=x1;
tables x2 /nopercent out=x2;
tables x3 /nopercent out=x3;
run;
proc print data=x1;run;
proc print data=x2;run;
proc print data=x3;run;