我想计算多个变量的占比和累计值占比,求助各位大佬~~~
data test1;
input id $ money scores asset lia;
cards;
Alfred 112.5 115 113 117
Alice 84 95 90 87
Barbara 98 100 76 54
Carol 102.5 150 33 66
Henry 102.5 200 45 90
;
run;
想通过一个程序计算money scores asset lia 的占比,这个应该怎写?