data a1;
input year ind1 code;
cards;
2010 3 000020
1983 3 000040
1984 3 000040
.....
2010 3 000040
1982 3 000050
......
2010 3 000050
2003 3 000070
....
2010 3 000070
......
1990 7 001740
1991 7 001740
.....
2010 7 001740
.....
1989 6 002780
1990 6 002780
.....
2010 6 002780
.....
1982 100 004970
1983 100 004970
....
2010 100 004970
2007 100 032350
2008 14 032350
2009 100 032350
2010 14 032350
;
run;
我已经用
proc freq data=jones;
table year ind1/out=fre;
run;求出
但是我还想求 ind1中包括多少个 code
和每年有多少个 code的话要怎么求~
我自己用的办法好像有点蠢~
是这样
data ind3;
set jones;
if ind1="3";
proc sort data=ind3;
by code;
run;
proc freq data=ind3;
table code/out=in3;
run;
依次求~
不知道有没有 简洁一点的办法~
希望你们能教教我~
谢谢~




雷达卡





京公网安备 11010802022788号







