<?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 Principal Component Analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Principal-Component-Analysis/m-p/498824#M25757</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let's say I've a dataset with 20 variables and &amp;nbsp;that represent food intake in grams&amp;nbsp;for 1000 individuals. I'm using Principal Component Analysis (PCA) and decided to retain two components, which represent dietary patterns in my case. The following code is used for this purpose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;factor&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dat &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nfact&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;method&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=principal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;priors&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=one&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;plot&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;scree&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;msa&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;score&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;flag&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0.25&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rotate&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=varimax&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;round&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dat_scores (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sampleid wts_s factor:) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;outstat&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=FactOut;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;food;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*20 food groups*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Factor loadings are used to interpret and label each factor or component. Nevertheless, w&lt;FONT face="Courier New" size="3"&gt;hen calculating factor or component scores by individual, PCA uses standardized scoring coefficients instead of factor loadings.&amp;nbsp;Could you please explain me why is that? I've consulted many&amp;nbsp;references and I have no found the&amp;nbsp;reason for this.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks a lot,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Alejandro.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 19:07:15 GMT</pubDate>
    <dc:creator>alexgonzalez</dc:creator>
    <dc:date>2018-09-25T19:07:15Z</dc:date>
    <item>
      <title>Principal Component Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Principal-Component-Analysis/m-p/498824#M25757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let's say I've a dataset with 20 variables and &amp;nbsp;that represent food intake in grams&amp;nbsp;for 1000 individuals. I'm using Principal Component Analysis (PCA) and decided to retain two components, which represent dietary patterns in my case. The following code is used for this purpose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;factor&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dat &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nfact&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;method&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=principal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;priors&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=one&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;plot&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;scree&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;msa&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;score&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;flag&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0.25&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rotate&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=varimax&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;round&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dat_scores (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sampleid wts_s factor:) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;outstat&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=FactOut;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;food;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*20 food groups*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Factor loadings are used to interpret and label each factor or component. Nevertheless, w&lt;FONT face="Courier New" size="3"&gt;hen calculating factor or component scores by individual, PCA uses standardized scoring coefficients instead of factor loadings.&amp;nbsp;Could you please explain me why is that? I've consulted many&amp;nbsp;references and I have no found the&amp;nbsp;reason for this.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks a lot,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Alejandro.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Principal-Component-Analysis/m-p/498824#M25757</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2018-09-25T19:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Principal Component Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Principal-Component-Analysis/m-p/498849#M25759</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Standardized (centered) variables — variables obtained by subtracting the original variable means and then divided by the original variable (e.g., component scores by individual) —&amp;nbsp; are treated differently from the raw data. Unlike raw data, centered variables (with means 0 and standard deviations 1) are suitable for the &lt;EM&gt;linear combination formula&lt;/EM&gt;, but not&amp;nbsp;for the&amp;nbsp;&lt;EM&gt;factor loading matrix&lt;/EM&gt;. This formula is invoked by the SCORE option in the absence of NOINT option.&amp;nbsp; With NOINT, the intercept is omitted from the analysis, covariances or correlations are not corrected for the mean, and even the SCORE option&amp;nbsp;will not take standardized data [1].&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;If you are primarily interested in getting the component scores as &lt;EM&gt;linear combinations&lt;/EM&gt; of the observed variables, the factor loading matrix table is not the right one for you. Again, when applying the [linear combination] formula you must use the standardized observed variables (with means 0 and standard deviations 1), but not the raw data. [2]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Raw data can be used with factor loadings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;References&lt;/U&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[1]&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_factor_sect006.htm#statug.factor.factornoint" target="_self"&gt;PROC FACTOR Statement&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[2]&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_factor_sect028.htm" target="_self"&gt;Principal Component Analysis&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Principal-Component-Analysis/m-p/498849#M25759</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-25T20:44:16Z</dc:date>
    </item>
  </channel>
</rss>

