Data visualization with SAS programming

How do I add p-values to boxplots?

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

How do I add p-values to boxplots?

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 Smiley Happy

 

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
‎05-15-2017 09:18 AM
Trusted Advisor
Posts: 1,503

Re: How do I add p-values to boxplots?

[ Edited ]

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?

View solution in original post


All Replies
Solution
‎05-15-2017 09:18 AM
Trusted Advisor
Posts: 1,503

Re: How do I add p-values to boxplots?

[ Edited ]

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?

New Contributor
Posts: 2

Re: How do I add p-values to boxplots?

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

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 132 views
  • 0 likes
  • 2 in conversation