<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Box and Whisker Plots with p-value included in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160005#M6008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a nice way to represent information on a given study for my classroom.&amp;nbsp; I have two separate groups A and B and want to compare them (hoping that B is statistically significantly better than A).&amp;nbsp; How can I program this?&amp;nbsp; I am very new to this and not sure what to do!&amp;nbsp; I think a box an whisker plot would look nice, but also want the p-value shown on the top comparing the two. &lt;/P&gt;&lt;P&gt;A 2.7&lt;/P&gt;&lt;P&gt;A 0.0&lt;/P&gt;&lt;P&gt;A 3.1&lt;/P&gt;&lt;P&gt;A 4.6&lt;/P&gt;&lt;P&gt;B 6.2&lt;/P&gt;&lt;P&gt;B 5.2&lt;/P&gt;&lt;P&gt;B 3.5&lt;/P&gt;&lt;P&gt;B 3.6&lt;/P&gt;&lt;P&gt;B 5.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&amp;nbsp; Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 01:59:35 GMT</pubDate>
    <dc:creator>Bailey</dc:creator>
    <dc:date>2014-08-14T01:59:35Z</dc:date>
    <item>
      <title>Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160005#M6008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a nice way to represent information on a given study for my classroom.&amp;nbsp; I have two separate groups A and B and want to compare them (hoping that B is statistically significantly better than A).&amp;nbsp; How can I program this?&amp;nbsp; I am very new to this and not sure what to do!&amp;nbsp; I think a box an whisker plot would look nice, but also want the p-value shown on the top comparing the two. &lt;/P&gt;&lt;P&gt;A 2.7&lt;/P&gt;&lt;P&gt;A 0.0&lt;/P&gt;&lt;P&gt;A 3.1&lt;/P&gt;&lt;P&gt;A 4.6&lt;/P&gt;&lt;P&gt;B 6.2&lt;/P&gt;&lt;P&gt;B 5.2&lt;/P&gt;&lt;P&gt;B 3.5&lt;/P&gt;&lt;P&gt;B 3.6&lt;/P&gt;&lt;P&gt;B 5.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&amp;nbsp; Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 01:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160005#M6008</guid>
      <dc:creator>Bailey</dc:creator>
      <dc:date>2014-08-14T01:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160006#M6009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to run a test that creates p-values. Depending on the version of SAS you are using then you can add that value to a graph using an annotate dataset with your graph procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is that your actual data or do you have more records? Tests for a small sample is displayed are going to much different than for a larger sample. Also when compare (test) are you looking at means or distribution or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160006#M6009</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-14T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160007#M6010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SAS code below takes your data set and reads the A and B into a variable called GROUP and the measures into a variable called VALUE.&amp;nbsp; I then ran the TTEST procedure with plots=box.&amp;nbsp; The output shows the p-values in a table and the boxplot below if that is okay.&amp;nbsp; This is one of the easiest ways I could think of.&amp;nbsp; The SAS output is contained in the attached pdf file.&amp;nbsp; All the best - Randy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;data work.compare;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; length group $&lt;/SPAN&gt;&lt;SPAN style="; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; group value;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A 2.7&lt;/P&gt;&lt;P&gt;A 0.0&lt;/P&gt;&lt;P&gt;A 3.1&lt;/P&gt;&lt;P&gt;A 4.6&lt;/P&gt;&lt;P&gt;B 6.2&lt;/P&gt;&lt;P&gt;B 5.2&lt;/P&gt;&lt;P&gt;B 3.5&lt;/P&gt;&lt;P&gt;B 3.6&lt;/P&gt;&lt;P&gt;B 5.9&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;ods &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;proc&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;ttest&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=work.compare &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;plots&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=box;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; group;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; value;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;ods &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;off&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 17:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160007#M6010</guid>
      <dc:creator>RandyCollica</dc:creator>
      <dc:date>2014-08-14T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160008#M6011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can provide the boxplot with p value added on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;ods select boxplot;&lt;/P&gt;&lt;P&gt;proc anova data=have;&lt;/P&gt;&lt;P&gt;class group;&lt;/P&gt;&lt;P&gt;model value=group;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 17:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160008#M6011</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-14T17:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160009#M6012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyway on the box-plot that I could include all the data points? &lt;/P&gt;&lt;P&gt;Both your answer (RandyCollica) and (&lt;A href="mailto:stat@sas"&gt;stat@sas&lt;/A&gt;) answers are exactly what I needed!!&amp;nbsp; Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 20:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160009#M6012</guid>
      <dc:creator>Bailey</dc:creator>
      <dc:date>2014-08-14T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Box and Whisker Plots with p-value included</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160010#M6013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check proc boxplot that allows to put stats on the box plot. I don't think it will allow to put all data points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 21:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-Whisker-Plots-with-p-value-included/m-p/160010#M6013</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-14T21:31:14Z</dc:date>
    </item>
  </channel>
</rss>

