<?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: supplementary variables in principal component analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725256#M35186</link>
    <description>&lt;P&gt;That is perfect! And using sgplot indeed gives me a chance to make a better graph.&lt;/P&gt;&lt;P&gt;Thank you very much, really appreciated.&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 20:12:36 GMT</pubDate>
    <dc:creator>emaneman</dc:creator>
    <dc:date>2021-03-10T20:12:36Z</dc:date>
    <item>
      <title>supplementary variables in principal component analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725244#M35183</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like some help with the use of&amp;nbsp; supplementary variables in a PCA.&lt;/P&gt;&lt;P&gt;I have 10 variables (A1-A5 and B1-B5 ) that organise neatly into two factors. I would then like to plot on the graph representing the two factors, a third variable.&lt;/P&gt;&lt;P&gt;In fact, I. have two separate variables. One (CATEGORY) is dichotomous, with values A or B. The second one (NAME) is nested within the previous ones and has values LIT1-LIT50 and POP1-POP50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I include the data file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of what i would like appears in the graph below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any suggestion you may have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-03-10 at 19.58.40.png" style="width: 945px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55789i272C3E5D765E5B31/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-03-10 at 19.58.40.png" alt="Screenshot 2021-03-10 at 19.58.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725244#M35183</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-03-10T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: supplementary variables in principal component analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725255#M35185</link>
      <description>&lt;P&gt;Simply concatenate your labels?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp;
set sasforum.export;
length label $12;
label = catx("-", category, name);
run;
proc princomp data=temp n=2 out=graph plots=score(ncomp=2);
var a1-a5 b1-b5;
id label;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1615406284853.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55790i58D52431B839613B/image-size/large?v=v2&amp;amp;px=999" role="button" title="PGStats_0-1615406284853.png" alt="PGStats_0-1615406284853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or use the out=graph dataset (which contains new variables Prin1 and Prin2) to create a fancier graph with proc sgplot.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725255#M35185</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-03-10T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: supplementary variables in principal component analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725256#M35186</link>
      <description>&lt;P&gt;That is perfect! And using sgplot indeed gives me a chance to make a better graph.&lt;/P&gt;&lt;P&gt;Thank you very much, really appreciated.&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/supplementary-variables-in-principal-component-analysis/m-p/725256#M35186</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-03-10T20:12:36Z</dc:date>
    </item>
  </channel>
</rss>

