由买买提看人间百态

topics

全部话题 - 话题: runtot
(共0页)
l*********s
发帖数: 5409
1
来自主题: Statistics版 - 请教SAS - 这个小程序怎么编
data temp;
input x @@;
cards;
5 4 3 2 1
;
run;
proc sort data = temp;
by descending x;
run;
data temp(drop=runtot);
set temp;
runtot + x ;
avgabov = runtot / _n_ ;
run;
(共0页)