* example2.sas * xref: * input: * output: * does: - example usage of the VCBD macro ******************************************************************;; filename MAC "vcbd.sas"; %include MAC; ******************************************************************;; data A; input practice provider response; cards; 1 1 1 1 1 0 1 1 0 1 1 0 1 2 0 1 2 0 1 2 0 1 2 0 2 1 0 2 1 1 2 1 1 2 1 1 3 3 0 3 3 1 3 3 1 3 4 1 3 4 1 3 4 1 3 7 1 3 7 0 3 7 0 3 7 0 4 4 1 4 4 1 4 4 1 4 4 1 4 8 1 4 8 1 4 8 1 5 1 1 5 1 0 5 1 1 5 2 1 5 3 0 5 3 1 5 4 1 ; run; ******************************************************************;; proc summary data=A nway; class practice provider; var response; output out=B sum=y n=m; run; ******************************************************************;; proc print data=B; * take a look; var practice provider y m; run; ******************************************************************;; %vcbd (data = B, i = practice, mij = m, yij = y);