I have output my interactive means from the glimmix procedure of SAS and am trying to make box plots from these means. Please see the attached. I don't understand why they aren't coming through as box plots. See my code below. I am wanting to look and see if there are any outliers in this data set and thus, am wanting to visualize with box plots. Any suggestions?
Proc SGPlot data=Means;
Vbox Mu/ Category=ParityGrpStrat1 Group=Trt;
It was my understanding that the Box plot was doing the summarizing for you. For example, in the documentation about box plots:
SASHELP.PRDSALE is NOT pre-summarized. The VBOX statement causes the data to be summarized and the mean calculated.
Or, if I do this:
proc sgplot data=sashelp.iris; vbox sepallength / group=species; run;
SASHELP.IRIS is not presummarized, the mean and outlier are shown based on the unsummarized data in the data set.
The things I might suggest are that you use your original dataset with the SGPLOT procedure step so that you see the distribution of your unsummarized data.
OR, PROC GLIMMIX has a PLOTS= option and will produce a Box plot using ODS GRAPHICS, so looking up the PLOTS= option might help you too.
Also, if you are just looking for outliers, PROC UNIVARIATE will show you the 5 highest and lowest (extreme obs) by default if you do this:
proc univariate data=sashelp.iris; var sepallength; run;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.