Hi; I'm trying to create bar charts in SAS from proc surveyfreq output, with standard error bars attached.
The code I have so far is as follows:
proc surveyfreq data=ztemp2;
table region*v1001/nofreq row chisq;
format &format1 &format2 &format3;
weight WT_AD;
where v1001<8;
title "&yyyymm v1001 by region";
ods output crosstabs=outfreqs ;;
proc print ;
run;
proc sgpanel ;
panelby REGION / columns=4 ; vbar V1001 / response=rowpercent ;
run ;
Does anyone know how I could edit the proc sgpanel code to add a visual indicator of the standard errors (already a variable in the outfreqs dataset) to the bars? Thanks a lot for the help.
The code I have so far is as follows:
proc surveyfreq data=ztemp2;
table region*v1001/nofreq row chisq;
format &format1 &format2 &format3;
weight WT_AD;
where v1001<8;
title "&yyyymm v1001 by region";
ods output crosstabs=outfreqs ;;
proc print ;
run;
proc sgpanel ;
panelby REGION / columns=4 ; vbar V1001 / response=rowpercent ;
run ;
Does anyone know how I could edit the proc sgpanel code to add a visual indicator of the standard errors (already a variable in the outfreqs dataset) to the bars? Thanks a lot for the help.