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
- /
- How do I add p-values to boxplots?

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
- Highlight
- Email to a Friend
- Report Inappropriate Content

2 weeks ago

How do I add p-values comparing two of five groups using this code? I have attached an illustration of what I would like to show. Thanks

proc sgplot data=oligo25_log;

vbox logX / category=gruppe;

run;

"logX" is my marker of interest and "gruppe" is the group variable (in my case there are five groups).

Best regards,

Magnus

Accepted Solutions

Solution

2 weeks ago

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

2 weeks ago - last edited 2 weeks ago

I think you have to use PROC BOXPLOT with the ANNOTATE facility to create those types of p-values on your plots.

But why make your life difficult? Wouldn't a table of p-values (which is easily produced) suffice?

All Replies

Solution

2 weeks ago

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

2 weeks ago - last edited 2 weeks ago

I think you have to use PROC BOXPLOT with the ANNOTATE facility to create those types of p-values on your plots.

But why make your life difficult? Wouldn't a table of p-values (which is easily produced) suffice?

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

2 weeks ago

Thank you for a quick and useful reply! True, but it looks good to include the p-values as well..