抛个砖。。。
data test;
input code date1 date2 r ;
cards;
2 1 1 0.1
2 1 2 0.2
2 2 1 0.3
2 2 2 0.5
1 1 1 0.1
1 1 2 0.2
1 2 1 0.3
1 2 2 0.4
;
run;
proc tabulate data=test out=aa;
class code date1 r;
table code,date1,r;
run;
data wanted;
set aa;
by code date1;
retain rr;
keep code date1 rr;
if first.date1 then rr=1;
rr=rr*(r**N);
if last.date1 then output;
run;


雷达卡






不太确定,这种数量级的数据已经远远超出了我的认知水平,祝你好运.
京公网安备 11010802022788号







