<?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 Using Formats Created with PROC FORMAT as a Grouping Variable in PROC BOXPLOT in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Using-Formats-Created-with-PROC-FORMAT-as-a-Grouping-Variable-in/m-p/270725#M14247</link>
    <description>&lt;P&gt;Can you use a format that was created with Proc Format in PROC BOXPLOT in oder to compare several groups associated with the format "bins" into which you have divided the grouping variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FORMAT ;&lt;BR /&gt;VALUE LEVELS&lt;/P&gt;&lt;P&gt;0 &amp;lt;- 2 = 'A'&lt;BR /&gt;2 &amp;lt;- 6 = 'B'&lt;BR /&gt;6 &amp;lt;- 10 = 'C'&lt;BR /&gt;10 &amp;lt;- 12 = 'D'&lt;BR /&gt;12 &amp;lt;- 16 = 'E';&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC FREQ&lt;BR /&gt;DATA = QUIZDATA ;&lt;BR /&gt;TABLES NLEVELS / PLOTS = FREQPLOT ;&lt;BR /&gt;FORMAT NLEVELS LEVELS. ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format works well with PROC FREQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you use it with PROC BOXPLOT as I just wish to compare the five groups A -E and not all the individual values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If one actually creates a new variable by binning the variable NLEVELS using the same groups &amp;nbsp;as in PROC FORMAT&lt;/P&gt;&lt;P&gt;then you&amp;nbsp;can use this new variable in PROC BOXPLOT for comparison.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2016 16:48:40 GMT</pubDate>
    <dc:creator>JonDickens1607</dc:creator>
    <dc:date>2016-05-16T16:48:40Z</dc:date>
    <item>
      <title>Using Formats Created with PROC FORMAT as a Grouping Variable in PROC BOXPLOT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-Formats-Created-with-PROC-FORMAT-as-a-Grouping-Variable-in/m-p/270725#M14247</link>
      <description>&lt;P&gt;Can you use a format that was created with Proc Format in PROC BOXPLOT in oder to compare several groups associated with the format "bins" into which you have divided the grouping variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FORMAT ;&lt;BR /&gt;VALUE LEVELS&lt;/P&gt;&lt;P&gt;0 &amp;lt;- 2 = 'A'&lt;BR /&gt;2 &amp;lt;- 6 = 'B'&lt;BR /&gt;6 &amp;lt;- 10 = 'C'&lt;BR /&gt;10 &amp;lt;- 12 = 'D'&lt;BR /&gt;12 &amp;lt;- 16 = 'E';&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC FREQ&lt;BR /&gt;DATA = QUIZDATA ;&lt;BR /&gt;TABLES NLEVELS / PLOTS = FREQPLOT ;&lt;BR /&gt;FORMAT NLEVELS LEVELS. ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format works well with PROC FREQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you use it with PROC BOXPLOT as I just wish to compare the five groups A -E and not all the individual values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If one actually creates a new variable by binning the variable NLEVELS using the same groups &amp;nbsp;as in PROC FORMAT&lt;/P&gt;&lt;P&gt;then you&amp;nbsp;can use this new variable in PROC BOXPLOT for comparison.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 16:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-Formats-Created-with-PROC-FORMAT-as-a-Grouping-Variable-in/m-p/270725#M14247</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-05-16T16:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Formats Created with PROC FORMAT as a Grouping Variable in PROC BOXPLOT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-Formats-Created-with-PROC-FORMAT-as-a-Grouping-Variable-in/m-p/270732#M14249</link>
      <description>&lt;P&gt;A&amp;nbsp;box plot shows the distribution of a continuous variable. What is the continuous variable here?&amp;nbsp; I am assuming that you want to create five box plots, one each for A-E?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is a continuoius variable called Y, you can create five box plots like this&lt;/P&gt;
&lt;P&gt;proc boxplot data=quizdata;&lt;/P&gt;
&lt;P&gt;FORMAT NLEVELS LEVELS. ;&lt;/P&gt;
&lt;P&gt;PLOT&amp;nbsp;Y*NLEVELS;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to visualize the distribution within each group, then try this:&lt;/P&gt;
&lt;P&gt;data A / view=A;&lt;/P&gt;
&lt;P&gt;Grade = NLEVELS;&amp;nbsp; /* copy continuous variable */&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc boxplot data=A;&lt;/P&gt;
&lt;P&gt;FORMAT NLEVELS LEVELS. ;&lt;/P&gt;
&lt;P&gt;PLOT&amp;nbsp;Grade*NLEVELS;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 17:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-Formats-Created-with-PROC-FORMAT-as-a-Grouping-Variable-in/m-p/270732#M14249</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-16T17:30:40Z</dc:date>
    </item>
  </channel>
</rss>

