<?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: Boxplot (Multiple variables) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155213#M262811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Combine all the continuous variables in one variable and flag them. Then use flag as a categorical variable on x-axis to display boxplots of continuous variables side-by-side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 02:48:13 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-09-23T02:48:13Z</dc:date>
    <item>
      <title>Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155212#M262810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am trying to create a boxplot image with several variables side-by-side. These are not categories of the same variable but, rather, separate continuous variables in which I would like a side-by-side comparison of the boxplots. These variables all share the same range (% out of 100) and I wish to use a single boxplot image to display several boxplots side-by-side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far,&amp;nbsp; I have generated separate boxplot images using the vbox statement in the sgplot procedure to make individual boxplot images, but I havn't found anything to combine them into a single image. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if my description is not clear &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;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 00:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155212#M262810</guid>
      <dc:creator>sasquatch</dc:creator>
      <dc:date>2014-09-23T00:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155213#M262811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Combine all the continuous variables in one variable and flag them. Then use flag as a categorical variable on x-axis to display boxplots of continuous variables side-by-side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 02:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155213#M262811</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-23T02:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155214#M262812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the article &lt;A href="http://blogs.sas.com/content/iml/2014/09/08/order-variables-by-statistic/" title="http://blogs.sas.com/content/iml/2014/09/08/order-variables-by-statistic/"&gt; Order variables by values of a statistic - The DO Loop&lt;/A&gt;, which also sorts the variables according to some statistic.&lt;/P&gt;&lt;P&gt;If you don't care about sorting the box plots, you can skip the first few steps. Just add an ID variable, call PROC TRANSPOSE, , call PROC SGPLOT and use the VBOX statement with the CATEGORY= option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155214#M262812</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-23T15:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155215#M262813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please provide an example?&lt;/P&gt;&lt;P&gt;How would you combine several categorical variables into one?&lt;/P&gt;&lt;P&gt;Example. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X3&lt;/P&gt;&lt;P&gt;obs1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;obs2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;combine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y1&lt;/P&gt;&lt;P&gt;obs1&amp;nbsp; 1, 5, 3&lt;/P&gt;&lt;P&gt;obs2&amp;nbsp;&amp;nbsp; 2, 4, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide example of how to flag as well. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 20:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155215#M262813</guid>
      <dc:creator>sasquatch</dc:creator>
      <dc:date>2014-09-23T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155216#M262814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see an example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class(keep=all_vars flag);&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;array v{*} _numeric_;&lt;/P&gt;&lt;P&gt;do i=1 to dim(v);&lt;/P&gt;&lt;P&gt;all_vars=v{i};&lt;/P&gt;&lt;P&gt;flag=vname(v{i});&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=class;&lt;/P&gt;&lt;P&gt;by flag;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc boxplot data = class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; plot all_vars * flag;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 21:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155216#M262814</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-23T21:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155217#M262815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And &lt;A href="http://blogs.sas.com/content/iml/2014/09/10/viz-distributions-of-100-vars/" title="http://blogs.sas.com/content/iml/2014/09/10/viz-distributions-of-100-vars/"&gt; An exploratory technique for visualizing the distributions of 100 variables - The DO Loop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 21:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155217#M262815</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-23T21:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155218#M262816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The blog post does contain an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 14:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155218#M262816</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-24T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot (Multiple variables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155219#M262817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rick! I am still getting accustomed to the SAS language so it took me a while to figure out the code. The graph looks great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 08:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Boxplot-Multiple-variables/m-p/155219#M262817</guid>
      <dc:creator>sasquatch</dc:creator>
      <dc:date>2014-11-14T08:48:47Z</dc:date>
    </item>
  </channel>
</rss>

