Data visualization with SAS programming

PROC SGPANEL

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

PROC SGPANEL

Hi all,

I used proc sgpanel to produce % frequency bar chart. Is there a way to send the % in a dataset?? Note that the input data for proc sgpanel has the values as they are, no computing was done previuosly.

 

Thanks


Accepted Solutions
Solution
‎08-31-2017 11:09 AM
SAS Super FREQ
Posts: 925

Re: PROC SGPANEL

The code below will get you the values that were computed for the chart:

 

ods output sgpanel=pct_data;
proc sgpanel data=sashelp.class;
panelby sex;
vbar age / response=weight stat=pct;
run;

proc print data=pct_data; run;

Hope this helps!

Dan

View solution in original post


All Replies
SAS Super FREQ
Posts: 925

Re: PROC SGPANEL

The code below will get you the values that were computed for the chart:

 

ods output sgpanel=pct_data;
proc sgpanel data=sashelp.class;
panelby sex;
vbar age / response=weight stat=pct;
run;

proc print data=pct_data; run;

Hope this helps!

Dan

Solution
‎08-31-2017 11:09 AM
SAS Super FREQ
Posts: 925

Re: PROC SGPANEL

The code below will get you the values that were computed for the chart:

 

ods output sgpanel=pct_data;
proc sgpanel data=sashelp.class;
panelby sex;
vbar age / response=weight stat=pct;
run;

proc print data=pct_data; run;

Hope this helps!

Dan

Occasional Contributor
Posts: 11

Re: PROC SGPANEL

Thanks so much Dan, appreciated your help
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 112 views
  • 2 likes
  • 2 in conversation