/*
All your variables "GroupA GroupB GroupC GroupD" are category variable.
But VBAR is usually for continuous variable.
So what graph you want to output ,could you post an example ?
Or maybe you want this ?
*/
data have;
Input GroupA GroupB GroupC GroupD;
datalines ;
1 0 0 1
1 0 1 0
0 0 0 1
0 1 1 1
0 1 1 1
1 1 1 1
1 1 1 1
;
data have;
set have;
id+1;
run;
proc transpose data=have out=want;
by id;
run;
proc sgplot data=want pctlevel=group;
vbar _NAME_/group=col1 stat=percent;
run;
... View more