<?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 PCA in SAS viya , How to do eigen vector matrix(or rotation matrix) by using Proc PCA in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672141#M23407</link>
    <description>&lt;P&gt;I’m doing PCA on a training dataset before training a predictive model and I'm using 3 PC’s that explains about 97% of the data. Now, how can I do PCA transformation on test data? I will probably have to use eigen vector matrix(or rotation matrix) obtained from the PCA results of the train dataset and perform matrix multiplication with test data. Do I have to scale and center the test data before? Or is there a function in SAS that does this operation? If you are familiar with R, it will be equivalent to using predict() function with prcomp object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jul 2020 04:51:26 GMT</pubDate>
    <dc:creator>satgrgfq4tr4fds</dc:creator>
    <dc:date>2020-07-26T04:51:26Z</dc:date>
    <item>
      <title>PCA in SAS viya , How to do eigen vector matrix(or rotation matrix) by using Proc PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672141#M23407</link>
      <description>&lt;P&gt;I’m doing PCA on a training dataset before training a predictive model and I'm using 3 PC’s that explains about 97% of the data. Now, how can I do PCA transformation on test data? I will probably have to use eigen vector matrix(or rotation matrix) obtained from the PCA results of the train dataset and perform matrix multiplication with test data. Do I have to scale and center the test data before? Or is there a function in SAS that does this operation? If you are familiar with R, it will be equivalent to using predict() function with prcomp object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 04:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672141#M23407</guid>
      <dc:creator>satgrgfq4tr4fds</dc:creator>
      <dc:date>2020-07-26T04:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: PCA in SAS viya ,</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672205#M23409</link>
      <description>&lt;P&gt;I can't specifically answer Viya questions ... however, I can answer PCA questions. When you perform PCA on a training data set, the exact same scaling must be used on the test data set. If the mean of X1 is 14 in the training data set and the standard deviation of X1 is 2.7 in the training data set, then these values must be used to scale the test data X1 as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please note: The method of using PCA before a predictive model isn't optimal. PCA can find vectors that are not very predictive. If you use Partial Least Squares analysis, this produces "PCA-like" vectors that designed to be predictive of whatever Y variable(s) you have, as predictability is the criterion that PLS optimizes.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672205#M23409</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-24T21:27:06Z</dc:date>
    </item>
  </channel>
</rss>

