I am having some difficulty fixing this macro code> libname mylib 'C:\Users\Daddy\Documents';
%include 'C:\Users\Daddy\Desktop\face.sas';
%face (group,sbpbl sbp12 cholbl chol12 hdlbl hdl12 glucosbl glucos12,data=tomhs);
run;
%macro face (group,sbpbl, sbp12, cholbl, chol12, hdlbl, hdl12, glucosbl, glucos12,data=tomhs,dec=3,all=all);
%do I = 1%to902;
%let depvar = %scan(&sbpbl sbp12 cholbl chol12 hdlbl hdl12 glucosbl glucos12,&i);
%let%length (&depvar) = 0 %goto done;
proc tabulate data=&tomhs noseps;
class &group; sbpbl&depvar;
table (&group &all), (&depvar)*(n*f=7.0 mean*f=7.&dec std*f=7.&dec
min*f=7.&dec max*f=7.&dec med*f=7.&dec)/rts=30;
run;
%end;
%done:
%mend face;
libname mylib'C:\Users\Daddy\Documents';
%include 'C:\Users\Daddy\Desktop\face.sas'
%face (group,sbpbl sbp12 cholbl chol12 hdlbl hdl12 glucosbl glucos12, data=tomhs);
run; Please how do I modify this macro code to display MEDIAN? Thanks
... View more