<?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: How to retain factor scores in PLS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601641#M174049</link>
    <description>&lt;P&gt;Yeah. I also have the same requirement, which I can deploy PLS into other language like Java or Python .&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 12:31:22 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-11-05T12:31:22Z</dc:date>
    <item>
      <title>How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601551#M174012</link>
      <description>&lt;P&gt;Hello programmers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a PLS analysis for a diet data and i want to know how i can retain the factors scores in PLS.&lt;/P&gt;&lt;P&gt;I am very familiar with retaining factor scores of the PCA analysis for use in my regression model but how to retain factors that are derived from PLS is a little problematic. Attached is my pls code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pls data = zthree method = pls  nfac=4 varss details;
  model iron calc = T_mean l_mean vc_mean vd_mean vr_mean cn_mean e_mean mp_mean mr_mean /solution;
  output out = pattern xscore = scorex yscore = scorey;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 00:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601551#M174012</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-05T00:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601560#M174016</link>
      <description>&lt;P&gt;Here's some instructions and explanations on how to capture output that is shown. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236266"&gt;@ChuksManuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello programmers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running a PLS analysis for a diet data and i want to know how i can retain the factors scores in PLS.&lt;/P&gt;
&lt;P&gt;I am very familiar with retaining factor scores of the PCA analysis for use in my regression model but how to retain factors that are derived from PLS is a little problematic. Attached is my pls code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pls data = zthree method = pls  nfac=4 varss details;
  model iron calc = T_mean l_mean vc_mean vd_mean vr_mean cn_mean e_mean mp_mean mr_mean /solution;
  output out = pattern xscore = scorex yscore = scorey;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 03:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601560#M174016</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-05T03:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601630#M174044</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;output out &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;pattern&lt;/SPAN&gt; xscore &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; scorex yscore &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; scorey&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your code captures the scores into a SAS data set, does it not? &lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601630#M174044</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-05T11:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601641#M174049</link>
      <description>&lt;P&gt;Yeah. I also have the same requirement, which I can deploy PLS into other language like Java or Python .&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601641#M174049</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-05T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601700#M174079</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yeah. I also have the same requirement, which I can deploy PLS into other language like Java or Python .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you have EM you can get the PMML code which Java or Python should consume.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601700#M174079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-05T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601936#M174195</link>
      <description>&lt;P&gt;Good news.&lt;/P&gt;
&lt;P&gt;PLS model is available for&amp;nbsp;&lt;SPAN&gt;PMML code ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/601936#M174195</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-06T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602088#M174285</link>
      <description>I don't know that one....but what happens if you build a model that has a code node and generate the PMML from that? I'd test it and see what happens if you have EM but unfortunately I don't have access to EM to test anything &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602088#M174285</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-06T18:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602180#M174295</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It so happens that the scores were actually retained and the scores that i needed for my regression model was the XScores.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 19:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602180#M174295</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-06T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602195#M174306</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236266"&gt;@ChuksManuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;It so happens that the scores were actually retained and the scores that i needed for my regression model was the XScores.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm curious, as you wouldn't normally use the X-Scores from PLS in a regression model; they are already computed as part of a regression model, and using them in another regression model doesn't seem to make sense here.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602195#M174306</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-06T20:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602201#M174311</link>
      <description>&lt;P&gt;In the PCA, i retained the rotated factor patterns and used them for regression.&lt;/P&gt;&lt;P&gt;In the PLC, is there a way i can retain the derived factors for use in a regression analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602201#M174311</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-06T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602237#M174325</link>
      <description>&lt;P&gt;In PLS the scores are already part of a regression. PLS is a regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your terminology has changed from "scores" to "derived factors", not the same thing at all. Which part of PLS are you talking about?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 21:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602237#M174325</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-06T21:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain factor scores in PLS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602244#M174329</link>
      <description>&lt;P&gt;I figured it out. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-factor-scores-in-PLS/m-p/602244#M174329</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-06T22:00:15Z</dc:date>
    </item>
  </channel>
</rss>

