Does this example model your data and desired output? I do not understand exactly the starting point. data bvars; do id=1 to 300; array v[10]; do _n_ = 1 to dim(v); v[_n_] = rantbl(4,.5)-1; end; output; end; run; proc summary data=bvars chartype; class v:; ways 2; output out=ways2; run;
... View more