An example of using multiple ACROSS variables in PROC TABULATE
From Richard de Venezia, slightly modified:
data abc; group = 1; idx = '1'; x = 1.1; idy = 'a'; y = 10.10; output; idx = '2'; x = 2.2; idy = 'b'; y = 11.11; output; idx = '3'; x = 3.3; idy = 'c'; y = 13.13; output; run; proc report nowindows data=abc; columns group (idx, x) (idy, y); define group / display group; define idx / across ; define idy / across ; define x / sum; define y / sum; run;

0 Comments:
Post a Comment
<< Home