<?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 How do I calculate xscores in Proc PLS? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/525862#M26635</link>
    <description>&lt;P&gt;I am using Proc PLS for PCR. Below is the code I'm using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26153i3191E78B33A18220/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code.PNG" alt="Code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand how to calculate the "xscore=factors" columns using my raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have output for model effect loading and model effect weights, but I don't understand how I can use this to calculate the factors that I have outputted in the output file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loadings.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26150i638B4E7493865B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="Loadings.PNG" alt="Loadings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a formula that I can use to calculate the factors to match the columns in the output file using my raw input data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 20:34:37 GMT</pubDate>
    <dc:creator>KR029</dc:creator>
    <dc:date>2019-01-09T20:34:37Z</dc:date>
    <item>
      <title>How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/525862#M26635</link>
      <description>&lt;P&gt;I am using Proc PLS for PCR. Below is the code I'm using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26153i3191E78B33A18220/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code.PNG" alt="Code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand how to calculate the "xscore=factors" columns using my raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have output for model effect loading and model effect weights, but I don't understand how I can use this to calculate the factors that I have outputted in the output file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loadings.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26150i638B4E7493865B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="Loadings.PNG" alt="Loadings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a formula that I can use to calculate the factors to match the columns in the output file using my raw input data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 20:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/525862#M26635</guid>
      <dc:creator>KR029</dc:creator>
      <dc:date>2019-01-09T20:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/525883#M26636</link>
      <description>Just a quick note, I've moved your post to the Statistical Procedures forum, for better responses.</description>
      <pubDate>Wed, 09 Jan 2019 21:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/525883#M26636</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-09T21:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526030#M26643</link>
      <description>&lt;P&gt;Scores are computed using the centered and scaled x-values (in other words, each x-variable has a mean of zero and a variance of 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the score in dimension&amp;nbsp;&lt;EM&gt;i&lt;/EM&gt;&amp;nbsp;for a single observation is the vector multiplication of loadings (&lt;EM&gt;p&lt;/EM&gt;) times centered and scaled data values (&lt;EM&gt;x&lt;/EM&gt;) transposed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ti = p*x'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526030#M26643</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-10T13:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526047#M26644</link>
      <description>&lt;P&gt;Thank you for your response Paige. I have tried that, and the numbers are not matching.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the first few rows of data. The Var 1 -- Var 8 variables I have here are standardized to meet the criteria.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data.PNG" style="width: 815px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26168i9A4606047EA4279D/image-dimensions/815x167?v=v2" width="815" height="167" role="button" title="Data.PNG" alt="Data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I take a linear combination of Var1 -- Var 8 with the model effect loadings seen below, I calculate much larger factors than the ones in the data. Please explain how this works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loadings.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26170i65B00ACEABE9E494/image-size/large?v=v2&amp;amp;px=999" role="button" title="Loadings.PNG" alt="Loadings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for you help on this!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526047#M26644</guid>
      <dc:creator>KR029</dc:creator>
      <dc:date>2019-01-10T13:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526060#M26645</link>
      <description>&lt;P&gt;Show your math. Show the results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make the actual input data available as a .CSV file or a SAS data set.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526060#M26645</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-10T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526065#M26647</link>
      <description>&lt;P&gt;CSV is attached with std variables, loading, and my calculations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526065#M26647</guid>
      <dc:creator>KR029</dc:creator>
      <dc:date>2019-01-10T14:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526071#M26648</link>
      <description>&lt;P&gt;In your spreadsheet, in cell Y2, I use the formula&amp;nbsp;=SUMPRODUCT(B2:I2,P2:W2) and I get the exact same value as in cell X2&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526071#M26648</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-10T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526073#M26649</link>
      <description>&lt;P&gt;Yes, I calculated cell X2 doing the same in an attempt to match factor 1, which is cell L2. But doing the sumproduct with loading weights and standardized variables does not give me factor 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526073#M26649</guid>
      <dc:creator>KR029</dc:creator>
      <dc:date>2019-01-10T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate xscores in Proc PLS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526075#M26650</link>
      <description>&lt;P&gt;I believe the difference is a scaling factor, that the variance of column L over the entire data set (not just the 10 rows you show) must be equal to 1. Or it must be equal to eigenvalue 1, I don't really remember now, but it should be easy for you to confirm.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-calculate-xscores-in-Proc-PLS/m-p/526075#M26650</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-10T15:29:16Z</dc:date>
    </item>
  </channel>
</rss>

