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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.