<?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 Sparse and Ordering in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Sparse-and-Ordering/m-p/57375#M1948</link>
    <description>Hello Folks,&lt;BR /&gt;
&lt;BR /&gt;
For SGPANEL, suppose I have two classification variables with missing combinations. How is the ordering for the levels determined when using the SPARSE option. I can see that the order depends on the pattern of missing and it's well behaved in most places. &lt;BR /&gt;
&lt;BR /&gt;
Using sashelp.prdsale here's what I've done. (How much space do we have?) Here's the code &lt;BR /&gt;
&lt;BR /&gt;
proc sgpanel data=prdsale;&lt;BR /&gt;
  panelby region product / sparse novarname columns=5;&lt;BR /&gt;
  hbar division / response=actual;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
EX1) Delete East x Chair and East x Sofa -- SOFA and CHAIR are the last two levels in the plot for EAST. Alphabetical within the not missing and missing. WEST follows EAST's pattern.&lt;BR /&gt;
&lt;BR /&gt;
EX2) Delete East x Chair and West x Sofa -- The levels of PRODUCT are determined consistent with EX1 for EAST. WEST follows EAST's pattern. East x Chair is upper right. West x Sofa is bottom middle (under East x Sofa). &lt;BR /&gt;
&lt;BR /&gt;
EX3) Keep deletions in EX2 and switch REGION and PRODUCT in the PANELBY statement. -- This one threw me. CHAIR comes before SOFA, so I would have thought that it's pattern of missing levels would have affected how the cells were laid out. But, now that I work this through here, my guess is that BED determined the order of REGION. Since BED had no missing combo's, REGION became EAST then WEST. And now testing that with &lt;BR /&gt;
&lt;BR /&gt;
EX4) Delete East x Bed and West x Sofa -- all of the PRODUCT levels have WEST then EAST.&lt;BR /&gt;
&lt;BR /&gt;
Okay, did I get it right? Anything else I should know about the ordering?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help. (Sorry for the long, thinking-out-loud post. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Chuck</description>
    <pubDate>Mon, 15 Feb 2010 16:16:15 GMT</pubDate>
    <dc:creator>ChuckK</dc:creator>
    <dc:date>2010-02-15T16:16:15Z</dc:date>
    <item>
      <title>Sparse and Ordering</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Sparse-and-Ordering/m-p/57375#M1948</link>
      <description>Hello Folks,&lt;BR /&gt;
&lt;BR /&gt;
For SGPANEL, suppose I have two classification variables with missing combinations. How is the ordering for the levels determined when using the SPARSE option. I can see that the order depends on the pattern of missing and it's well behaved in most places. &lt;BR /&gt;
&lt;BR /&gt;
Using sashelp.prdsale here's what I've done. (How much space do we have?) Here's the code &lt;BR /&gt;
&lt;BR /&gt;
proc sgpanel data=prdsale;&lt;BR /&gt;
  panelby region product / sparse novarname columns=5;&lt;BR /&gt;
  hbar division / response=actual;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
EX1) Delete East x Chair and East x Sofa -- SOFA and CHAIR are the last two levels in the plot for EAST. Alphabetical within the not missing and missing. WEST follows EAST's pattern.&lt;BR /&gt;
&lt;BR /&gt;
EX2) Delete East x Chair and West x Sofa -- The levels of PRODUCT are determined consistent with EX1 for EAST. WEST follows EAST's pattern. East x Chair is upper right. West x Sofa is bottom middle (under East x Sofa). &lt;BR /&gt;
&lt;BR /&gt;
EX3) Keep deletions in EX2 and switch REGION and PRODUCT in the PANELBY statement. -- This one threw me. CHAIR comes before SOFA, so I would have thought that it's pattern of missing levels would have affected how the cells were laid out. But, now that I work this through here, my guess is that BED determined the order of REGION. Since BED had no missing combo's, REGION became EAST then WEST. And now testing that with &lt;BR /&gt;
&lt;BR /&gt;
EX4) Delete East x Bed and West x Sofa -- all of the PRODUCT levels have WEST then EAST.&lt;BR /&gt;
&lt;BR /&gt;
Okay, did I get it right? Anything else I should know about the ordering?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help. (Sorry for the long, thinking-out-loud post. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Chuck</description>
      <pubDate>Mon, 15 Feb 2010 16:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Sparse-and-Ordering/m-p/57375#M1948</guid>
      <dc:creator>ChuckK</dc:creator>
      <dc:date>2010-02-15T16:16:15Z</dc:date>
    </item>
  </channel>
</rss>

