<?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 score for PLS procedure issue in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676606#M32425</link>
    <description>&lt;P&gt;Hello, experts, I have created specific multiple responses PLS model, and would like to use score approach for prediction.&lt;/P&gt;&lt;P&gt;I use the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* store score from pls*/&lt;BR /&gt;PROC PLS DATA=WORK.training NFAC=4 missing=EM(MAXITER=3) METHOD=PLS NOCENTER NOSCALE&amp;nbsp; plots=(vip dmodx) VARSS NOCVSTDIZE details;&lt;BR /&gt;&amp;nbsp;MODEL &amp;amp;Y1 = &amp;amp;X1 &amp;amp;X2 &amp;amp;X3 &amp;amp;X4 &amp;amp;X5 &amp;amp;X6 &amp;amp;X7 &amp;amp;X8 &amp;amp;X9 &amp;amp;X10 &amp;amp;X11 &amp;amp;X12 &amp;amp;X13/solution;&lt;BR /&gt;&amp;nbsp;ods output ParameterEstimates=WORK.Parm;&lt;BR /&gt;&amp;nbsp;OUTPUT OUT=PRED1 PREDICTED=p_Y1 p_Y2 P_Y3 p_Y4 p_Y5;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc transpose data=WORK.Parm(rename=(RowName=_NAME_)) out=WORK.tParm;&lt;/P&gt;&lt;P&gt;data WORK.tParm; set tParm;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _TYPE_ = 'PARMS';&lt;BR /&gt;RUN;&amp;nbsp;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;/* use score to get prediction*/&lt;BR /&gt;proc score data=WORK.prediction (drop=Y1 Y2 Y3 Y4 Y5)&lt;BR /&gt;score=WORK.tParm out=ScoreOuttest type=parms nostd predict;&lt;BR /&gt;var &amp;amp;X1 &amp;amp;X2 &amp;amp;X3 &amp;amp;X4 &amp;amp;X5 &amp;amp;X6 &amp;amp;X7 &amp;amp;X8 &amp;amp;X9 &amp;amp;X10 &amp;amp;X11 &amp;amp;X12 &amp;amp;X13;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issue is that I found the predict results generated from PLS procedure and score procedure are different on training dataset. Can experts give some explanation or suggestions on this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 21:58:00 GMT</pubDate>
    <dc:creator>Jonison</dc:creator>
    <dc:date>2020-08-13T21:58:00Z</dc:date>
    <item>
      <title>score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676606#M32425</link>
      <description>&lt;P&gt;Hello, experts, I have created specific multiple responses PLS model, and would like to use score approach for prediction.&lt;/P&gt;&lt;P&gt;I use the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* store score from pls*/&lt;BR /&gt;PROC PLS DATA=WORK.training NFAC=4 missing=EM(MAXITER=3) METHOD=PLS NOCENTER NOSCALE&amp;nbsp; plots=(vip dmodx) VARSS NOCVSTDIZE details;&lt;BR /&gt;&amp;nbsp;MODEL &amp;amp;Y1 = &amp;amp;X1 &amp;amp;X2 &amp;amp;X3 &amp;amp;X4 &amp;amp;X5 &amp;amp;X6 &amp;amp;X7 &amp;amp;X8 &amp;amp;X9 &amp;amp;X10 &amp;amp;X11 &amp;amp;X12 &amp;amp;X13/solution;&lt;BR /&gt;&amp;nbsp;ods output ParameterEstimates=WORK.Parm;&lt;BR /&gt;&amp;nbsp;OUTPUT OUT=PRED1 PREDICTED=p_Y1 p_Y2 P_Y3 p_Y4 p_Y5;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc transpose data=WORK.Parm(rename=(RowName=_NAME_)) out=WORK.tParm;&lt;/P&gt;&lt;P&gt;data WORK.tParm; set tParm;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _TYPE_ = 'PARMS';&lt;BR /&gt;RUN;&amp;nbsp;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;/* use score to get prediction*/&lt;BR /&gt;proc score data=WORK.prediction (drop=Y1 Y2 Y3 Y4 Y5)&lt;BR /&gt;score=WORK.tParm out=ScoreOuttest type=parms nostd predict;&lt;BR /&gt;var &amp;amp;X1 &amp;amp;X2 &amp;amp;X3 &amp;amp;X4 &amp;amp;X5 &amp;amp;X6 &amp;amp;X7 &amp;amp;X8 &amp;amp;X9 &amp;amp;X10 &amp;amp;X11 &amp;amp;X12 &amp;amp;X13;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issue is that I found the predict results generated from PLS procedure and score procedure are different on training dataset. Can experts give some explanation or suggestions on this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 21:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676606#M32425</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2020-08-13T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676607#M32426</link>
      <description>&lt;P&gt;"Different" is very vague. Show us a portion of the comparison where you say it is different. Are there any ERRORs or WARNINGs in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your are running PROC PLS on work.training, but you are running PROC SCORE on work.prediction. These are not the same, and they should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, your code shows only a single Y variable, but your are asking for predicted values for 5 different Y variables, that doesn't seem right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, although there are rare situations where you might want to run PROC PLS with the NOCENTER and NOSCALE options, generally you don't do that, and the predicted values and important variables will change depending on choice of scaling and centering of the original data.&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676607#M32426</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-14T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676704#M32430</link>
      <description>&lt;P&gt;Example using SASHELP.CARS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pls data=sashelp.cars(keep=msrp invoice enginesize--mpg_highway) nfac=3;
    ods output parameterestimates=coeffs;
    model msrp invoice = enginesize--mpg_highway/solution;
    output out=alligator predicted=msrp_pred invoice_pred;
run;
proc transpose data=coeffs out=coeffs_t;
    id rowname;
run;
data coeffs_t;
    set coeffs_t;
    _type_='PARMS';
run;
proc score data=sashelp.cars(keep=enginesize--mpg_highway) out=alligator2 score=coeffs_t type=parms;
    var enginesize--mpg_highway;
run;
data compare;
    merge alligator(keep=invoice_pred msrp_pred) alligator2(keep=msrp invoice rename=(msrp=msrp_pred2 invoice=invoice_pred2));
    delta_msrp=msrp_pred-msrp_pred2;
    delta_invoice=invoice_pred-invoice_pred2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Aug 2020 12:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676704#M32430</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-14T12:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676705#M32431</link>
      <description>PROC SCORE is for PROC REG ( Y= X*beta ) , not for PROC PLS .&lt;BR /&gt;They have different score algorithm , the only way to score pls is your first way I think .</description>
      <pubDate>Fri, 14 Aug 2020 12:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676705#M32431</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-14T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676706#M32432</link>
      <description>&lt;P&gt;But I just showed code that uses PROC SCORE to predict from PROC PLS output.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 12:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676706#M32432</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-14T12:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676716#M32433</link>
      <description>Great. Learn something new '/solution' .&lt;BR /&gt;Don't realize the coefficient of PLS is for raw data , NOT principal component.</description>
      <pubDate>Fri, 14 Aug 2020 13:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676716#M32433</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-14T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: score for PLS procedure issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676726#M32435</link>
      <description>&lt;P&gt;You can get the loadings for each factor as well.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/score-for-PLS-procedure-issue/m-p/676726#M32435</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-14T13:39:31Z</dc:date>
    </item>
  </channel>
</rss>

