I have ran a proc NPAR1WAY procedure on my dataset and have successfully got the graph that depicts the frequencies above and below the overall median BUT my problem is that I can't see how many are above and how many are below the median...that is the numbers I also need but don't know how to code for the results section to specify them...
This output data set (save)
ods output medianplot=save;
includes the frequencies above and below the median for each class.
proc print data=save;
You can save the median plot data (which includes the frequencies above and below the median) in a SAS data set like this:
ods graphics on;
proc npar1way data=have median;
class classVar; var analysisVar;
ods output medianplot=save;
run;
Also, here's an example from the documentation (Statistical Graphics with ODS) that shows how to create plots in HTML that are enhanced with tooltip displays:
you see the pink and the blue...they are the above and below median...I need to know the frequency for each color...I only have the N which for example for the first bar is 270 but I want to know the breakdown
This output data set (save)
ods output medianplot=save;
includes the frequencies above and below the median for each class.
proc print data=save;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.