11-27-2016 07:15 PM
You can use SGPLOT or Pareto, it's a matter of choice, assuming you have the SAS/QC and PROC PARETO available.
What exactly is your question though?
11-28-2016 11:02 PM
OI don't have Pareto installed, I just found the fact. So I have to use SGPLOT.
The goal is
11-27-2016 10:58 PM
You really should post it at ODS Graphic forum.
proc freq data=sashelp.class noprint; table age/out=freq outcum; run; data have; set freq; p=percent/100; cum_p=cum_pct/100; format p cum_p percent7.2; proc sgplot data=have; vbar age/response=p nostatlabel fillattrs=graphdata2 legendlabel='percent'; vline age/response=cum_p markers datalabel legendlabel='cum percent'; yaxis label=' '; keylegend /across=1 position=right location=inside; run;
11-28-2016 11:19 PM
You can usually use the procs to do some summaries, but since you're needing two different statistics it's easier if you do it first yourself.
So yes, summarize the data using proc freq. SASHELP.CLASS is one of several demo dataset that almost all SAS installations will have. This allows others to run the same code and generate results.
Need further help from the community? Please ask a new question.