turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- Re: Box Plots

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

3 weeks ago

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?

Thanks!

Proc SGPlot data=Means;

Vbox Mu/ Category=ParityGrpStrat1 Group=Trt;

Run;

Accepted Solutions

Highlighted
## Re: Box Plots

Options
Given your data, you are successfully plotting the means. You see the mean and the median, which are the same. That is all you provided to plot.

Solution

3 weeks ago

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to llt34c

3 weeks ago

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to llt34c

3 weeks ago

Try it once without group= and see if that is more what you had in mind. I have never tried group= and category= together. Do you have any variability within those groups?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to WarrenKuhfeld

3 weeks ago

Thanks. This allowed me to see the box plots better for each "grouping" if you will. I plotted with the raw data and was successful. Just not sure why it wouldn't work the same with these means.

Thanks for your help!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to llt34c

3 weeks ago

Hi:

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;
```

cynthia

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Cynthia_sas

3 weeks ago

Thanks for your help. I was able to successfully plot with the raw data. I am still not sure though why I can't with the means.

Thanks again!

Highlighted
## Re: Box Plots

Options
Given your data, you are successfully plotting the means. You see the mean and the median, which are the same. That is all you provided to plot.

Solution

3 weeks ago

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to llt34c

3 weeks ago