<?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: read in data after running PCA in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686014#M24370</link>
    <description>Great. Thanks for your help.</description>
    <pubDate>Wed, 23 Sep 2020 12:01:38 GMT</pubDate>
    <dc:creator>bills1</dc:creator>
    <dc:date>2020-09-23T12:01:38Z</dc:date>
    <item>
      <title>read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685984#M24357</link>
      <description>&lt;P&gt;Hi, I have just run a PCA but now want to calculate the confidence intervals for the eigenvalues. How do extract the eigenvalues from the analysis to calculate the confidence intervals?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example using this code that comes from here:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2019/11/04/interpret-graphs-principal-components.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/11/04/interpret-graphs-principal-components.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc princomp data=iris         /* use N= option to specify number of PCs */
              STD               /* optional: stdize PC scores to unit variance */
              out=PCOut         /* only needed to demonstate corr(PC, orig vars) */
              plots=(scree profile pattern score);
   var SepalLength SepalWidth PetalLength PetalWidth;  /* or use _NUMERIC_ */
   ID id;                       /* use blank ID to avoid labeling by obs number */
   ods output Eigenvectors=EV;  /* to create loadings plot, output this table */
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The data gets exported to &lt;STRONG&gt;PCOut&lt;/STRONG&gt;. How do I read that in to use with &lt;STRONG&gt;proc iml&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 09:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685984#M24357</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685990#M24359</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;How do extract the eigenvalues from the analysis to calculate the confidence intervals?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Add this command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS OUTPUT Eigenvalues=eigenvalues;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 10:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685990#M24359</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T10:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685994#M24360</link>
      <description>&lt;P&gt;Thanks Paige, but how do I use them. For example, I want to run this after extracting the eigenvalues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
CI_1_lower=Eigenvalues[1]/(1+1.96*sqrt(2/179));
CI_1_upper=Eigenvalues[1]/(1-1.96*sqrt(2/179));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685994#M24360</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T11:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685997#M24361</link>
      <description>&lt;P&gt;I have never seen confidence intervals for eigenvalues from PCA, and so I don't know a formula to compute the confidence intervals or how you would use them. (Why do you want confidence intervals for eigenvalues anyway, what use are they?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure you could compute the confidence intervals from either a bootstrap or jackknife method, and I'm sure Google knows more about this than I do.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685997#M24361</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685998#M24362</link>
      <description>I am doing an assignment and we need to calculate the confidence intervals for the eigenvalues. I can manually put the eigenvalues in to a vector, but I thought there might be an easier way. I just want to know how I would read in the Eigenvectors that you just showed me how to output in to the next bit of code. I normally use R and Python and it is fairly easy to do.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help anyway Paige.</description>
      <pubDate>Wed, 23 Sep 2020 11:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685998#M24362</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685999#M24363</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I am doing an assignment and we need to calculate the confidence intervals for the eigenvalues&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have used PCA hundreds of times in my life, and I still can't think of a reason why you would want confidence intervals for eigenvalues, and your brief statement does not provide me any enlightenment. But I admit I don't know everything, and I would like to understand, what are you going to do with the confidence intervals once you compute them? I helped you, could you please explain this for me in terms of actual usage(s) of the confidence intervals, instead of explaining that you have an assignment?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/685999#M24363</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686002#M24364</link>
      <description>&lt;P&gt;This is an example.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-09-23 213305.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49704i84E432F2579BFCBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-09-23 213305.png" alt="Screenshot 2020-09-23 213305.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686002#M24364</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686004#M24365</link>
      <description>&lt;P&gt;Okay, so that's a formula for confidence intervals for eigenvalues. But ... you didn't answer my question.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686004#M24365</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686006#M24366</link>
      <description>&lt;P&gt;That is an example of a use case. That is probably the best answer that I can give you. I've only been learning this for the last week so can't tell you of other use cases. I am calculating because I want to pass the assignment and to do that I need to get the confidence intervals for the eigenvalues (which I have already done by manually entering the values in). I just want to know if there is a better way of doing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this article which explains a bit (using a different formula):&amp;nbsp;&lt;A href="http://ijpam.uniud.it/online_issue/201737/50-Liu.pdf" target="_blank"&gt;http://ijpam.uniud.it/online_issue/201737/50-Liu.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686006#M24366</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686010#M24367</link>
      <description>&lt;P&gt;Your code example that you posted earlier uses the number 179. I don't have your data, so I don't know if that is correct, you will have to vouch for the correctness of using 179.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set eigenvalues;
    CI_lower=Eigenvalue/(1+1.96*sqrt(2/179));
    CI_upper=Eigenvalue/(1-1.96*sqrt(2/179));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686010#M24367</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T11:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686011#M24368</link>
      <description>You can use function  eigen()  in IML to get primary component .&lt;BR /&gt;read table into iml ,try :&lt;BR /&gt;proc iml;&lt;BR /&gt;use pcout;&lt;BR /&gt;read all var _all_ into x ;&lt;BR /&gt;close;&lt;BR /&gt;print x;&lt;BR /&gt;quit;</description>
      <pubDate>Wed, 23 Sep 2020 11:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686011#M24368</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-23T11:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686012#M24369</link>
      <description>&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;</description>
      <pubDate>Wed, 23 Sep 2020 11:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686012#M24369</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-23T11:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: read in data after running PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686014#M24370</link>
      <description>Great. Thanks for your help.</description>
      <pubDate>Wed, 23 Sep 2020 12:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/read-in-data-after-running-PCA/m-p/686014#M24370</guid>
      <dc:creator>bills1</dc:creator>
      <dc:date>2020-09-23T12:01:38Z</dc:date>
    </item>
  </channel>
</rss>

