<?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: PCA : correltaion in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984815#M49334</link>
    <description>Thank you StatDave!</description>
    <pubDate>Mon, 16 Mar 2026 15:03:35 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2026-03-16T15:03:35Z</dc:date>
    <item>
      <title>PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984764#M49324</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to add supplementary variables to the PCA correlation circle. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm wondering how I can retrieve the correlations of "active" variables (their coordinates on the circle).&amp;nbsp; In fact, they are not present in the output table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the correlation of supplementary variables, should I apply proc corr&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;or is there an option to add supplementary variables?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In fact, with these correlations, I want to remake the circle.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your help !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 16:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984764#M49324</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-03-13T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984770#M49325</link>
      <description>&lt;P&gt;This can be done by using an ODS OUTPUT statement to save the data set produced by the PLOTS=PATTERN(CIRCLES=) option in PROC PRINCOMP and adding to it the correlations of the supplementary variables with the principal components. Use the OUT= option to save the principal component scores. After adding the supplementary variable correlations, you can use PROC SGPLOT to reconstruct the pattern plot. The following example uses the crime data in the Getting Started section of the PRINCOMP documentation. The analysis is done using just five of the variables. The Murder and Rape variables are treated as supplementary variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc princomp n=2 data=Crime plots=pattern(circles=50 75 100) out=out;
   var robbery--auto_theft; id state; 
   ods output patternplot=pp;
   run;
proc corr data=out outp=supp; 
   var murder rape; with prin:; 
   run;
proc transpose data=supp(where=(_type_='CORR')) out=supp2 name=Variable;
   run;
data all;
   set pp supp2;
   run;
proc sgplot data=all aspect=.9 noautolegend;
  ellipseparm semimajor=1 semiminor=1 / 
     slope=0 xorigin=0 yorigin=0 clip 
     lineattrs=(color=blue)
     transparency=0.9;
  ellipseparm semimajor=0.87 semiminor=0.87 / 
     slope=0 xorigin=0 yorigin=0 clip 
     lineattrs=(color=blue)
     transparency=0.9;
  ellipseparm semimajor=0.71 semiminor=0.71 / 
     slope=0 xorigin=0 yorigin=0 clip 
     lineattrs=(color=blue)
     transparency=0.9;
  scatter x=xcirclelabel y=ycirclelabel / markercharattrs=(size=9pt)
     markerchar=circlelabel transparency=0.7;
  scatter x=prin1 y=prin2 / 
    markerattrs=(color=blue symbol=circle) datalabel=variable;
  refline 0 / axis=x;
  refline 0 / axis=y;
  xaxis values=(-1.0 to 1.0 by 0.5) display=(nolabel);
  yaxis values=(-1.0 to 1.0 by 0.5) display=(nolabel);
  title "Component Pattern";
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First the pattern plot on the original five variables as produced by PRINCOMP.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PatternPlot5vars.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113632i9DF3C89A5C92EDFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="PatternPlot5vars.png" alt="PatternPlot5vars.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now the pattern plot, as drawn by the PROC SGPLOT code above, adding the two supplementary variables, Murder and Rape, in the original principal component space.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PatternPlot.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113631i4AB46E99FC1D74F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="PatternPlot.png" alt="PatternPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 23:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984770#M49325</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-03-13T23:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984789#M49326</link>
      <description>Thank you, StatDave!&lt;BR /&gt;I'm wondering if I should standardize the 'murder' and 'rape' variables using PROC STANDARD before calculating the correlation?</description>
      <pubDate>Sat, 14 Mar 2026 18:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984789#M49326</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-03-14T18:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984790#M49327</link>
      <description>&lt;P&gt;Standardization won't change the correlation.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2026 18:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984790#M49327</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-03-14T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984792#M49329</link>
      <description>Right! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 14 Mar 2026 19:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984792#M49329</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-03-14T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984795#M49330</link>
      <description>Hello StatDave,&lt;BR /&gt;To add the supplementary individuals I use the proc score to calculate the variables and scores. I'm wondering if there is an another special option is SAS for doing this.</description>
      <pubDate>Sun, 15 Mar 2026 14:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984795#M49330</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-03-15T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984806#M49331</link>
      <description>&lt;P&gt;You gotta need the help of SAS/IML to use matrix multiply operator.&lt;/P&gt;
&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 07:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984806#M49331</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-03-16T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984808#M49332</link>
      <description>&lt;P&gt;If you need a refresher on the matrix operations behind creating scores plots, see "A classical principal component analysis in SAS/IML" in the article, &lt;A href="https://blogs.sas.com/content/iml/2017/08/09/robust-principal-components-sas.html" target="_self"&gt;"Robust PCA in SAS."&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 09:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984808#M49332</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2026-03-16T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984812#M49333</link>
      <description>&lt;P&gt;If you are asking about computing values on the principal components for new observations, then the method you used is the best way.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 14:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984812#M49333</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-03-16T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: PCA : correltaion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984815#M49334</link>
      <description>Thank you StatDave!</description>
      <pubDate>Mon, 16 Mar 2026 15:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PCA-correltaion/m-p/984815#M49334</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-03-16T15:03:35Z</dc:date>
    </item>
  </channel>
</rss>

