<?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 Re: Proc boxplot in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644198#M78467</link>
    <description>&lt;P&gt;PROC BOXPLOT requires the data to be sorted by the x-axis variable. PROC SGPLOT does not require this.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 10:56:22 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-30T10:56:22Z</dc:date>
    <item>
      <title>Proc boxplot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644193#M78466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to execute a proc boxplot to get information on the dispersion of a continuous variable TI_NUM for each category of a variable "Groupe_villes_2". I ran this code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc boxplot data=PACIFICA.Pacifica_04_v3;&lt;BR /&gt;plot TI_NUM*groupe_villes_2 / maxpanels=15;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I do so I get this output for the first plot :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BoxPlot.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38905i786C1FA2C9BDB2D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BoxPlot.PNG" alt="BoxPlot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when the variables "groupe_villes_non_estimated" and "groupe_villes_0_2nd" are two (and only two) levels of the variable "groupe_villes_2".&lt;BR /&gt;You will find attached the output of the proc summary confirming the number of level of the categorical variable "groupe_villes_2". You will also find the output of the proc boxplot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NB : I don't have this error with this code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA= HAVE;&lt;BR /&gt;VBOX TI_NUM / category = groupe_villes_2;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there are so many levels that I can't see anything on the plot. I tried&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics / DATASKINMAX=10;&lt;BR /&gt;PROC SGPLOT DATA=PACIFICA.Pacifica_04_v3;&lt;BR /&gt;VBOX TI_NUM / category = groupe_villes_2 ;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it doesn't work, I think I don't know how ods graphics works...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644193#M78466</guid>
      <dc:creator>Mathis1</dc:creator>
      <dc:date>2020-04-30T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc boxplot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644198#M78467</link>
      <description>&lt;P&gt;PROC BOXPLOT requires the data to be sorted by the x-axis variable. PROC SGPLOT does not require this.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644198#M78467</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-30T10:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc boxplot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644220#M78468</link>
      <description>&lt;P&gt;Another thing to do would be to partition the data set with an indexing variable, and then use a BY statement.&amp;nbsp; This would produce a set of boxplots for each partition, so that the overlap and readability are not a problem.&amp;nbsp; The issue then becomes being able to compare results in different sets.&amp;nbsp; For this dataset, where the dependent variable is a count, the Y axis should be roughly the same for all of the plots.&amp;nbsp; If not, you can use SGPLOT to set the Y axis range.&amp;nbsp; I don't see an option for this in PROC BOXPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 11:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-boxplot/m-p/644220#M78468</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-30T11:59:40Z</dc:date>
    </item>
  </channel>
</rss>

