|
|
板凳

楼主 |
发表于 2007-9-24 09:55:36
|
只看该作者
Re: 帮我看一下这道题
sas presents the data in this way:
a 289
a 280
a 278
b 202
b 450
......
so if this is what you want, you can use the below program:
data raw(keep=group score);
input t $ @@;
retain group;
if input(t,3.)=. then group=t;
if input(t,3.)^=.;
score=input(t,3.);
cards;
C 303 102 150 B 202 C 300 B 450 400 399
420 A 289 280 278
;
run;
proc sort;
by group /*score,if necessary*/;
run;
proc print;
run; |
|