<?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 PROC SCORE and PROC PLS method = RRR in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/68764#M19693</link>
    <description>Please forgive the long-winded explanation, I am a new SAS user.&lt;BR /&gt;
&lt;BR /&gt;
I am using RRR to create dietary patterns at a baseline time point and using this pattern to look at diet over a 10 year period which requires repeated scores.&lt;BR /&gt;
&lt;BR /&gt;
Using the xweight ods output from PROC PLS RRR I am able to use PROC SCORE to produce a score based on individuals food intake. However, I have hit a problem. To check my methodology, I have applied the PROC SCORE to the same data used in the PROC PLS to create a RRR score. The hypothesis was that the applied and natural scores would be the same, however, they are not. They are systematically different by 11.18%. This same ratio appears if i use the same method in a completely different data set with different x groups .&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any ideas why this very consistent error keeps cropping up? Does anyone have information on the way in which PROC PLS method = RRR applies its xweights to the data to create the score?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help, code below.&lt;BR /&gt;
&lt;BR /&gt;
 Our code:&lt;BR /&gt;
&lt;BR /&gt;
*KEEP CENTRED AND SCALED PREDICTOR (FOOD GROUP) VARIABLES &amp;amp; NATURAL DP&lt;BR /&gt;
SCORE PRODUCED BY EXPL RRR&lt;BR /&gt;
&amp;amp; REMOVE RAW DATA;&lt;BR /&gt;
  data scaled;&lt;BR /&gt;
  set pattern10;&lt;BR /&gt;
  keep cid_477a qlet $foods2&lt;BR /&gt;
  pred10score1 ;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
************************************************************************&lt;BR /&gt;
CONFIRMATORY RRR USING CENTRED AND SCALED DATA;&lt;BR /&gt;
&lt;BR /&gt;
*MAKE XWEIGHTS (SCORING FILE) SUITABLE FOR PROC SCORE;&lt;BR /&gt;
&lt;BR /&gt;
data scores;&lt;BR /&gt;
set rrr10xweights;&lt;BR /&gt;
&lt;BR /&gt;
if Numberoffactors &amp;gt; 1 then delete;*only interested in 1st pattern;&lt;BR /&gt;
drop Numberoffactors;&lt;BR /&gt;
&lt;BR /&gt;
_TYPE_="SCORE";&lt;BR /&gt;
_NAME_="Factor1";&lt;BR /&gt;
&lt;BR /&gt;
/* rename scoring variables to match scaled predictor variable names*/&lt;BR /&gt;
rename $foods = $foods2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*RE-SCORE SCALED AND CENTRED PREDICTOR VARIABLES using scoring&lt;BR /&gt;
coefficients to test confirmatory RRR;&lt;BR /&gt;
&lt;BR /&gt;
proc score data=scaled out=pattern10_1 score=scores type="SCORE"&lt;BR /&gt;
nostd;&lt;BR /&gt;
var $foods2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
***************************************************************************&lt;BR /&gt;
COMPARE 'NATURAL' AND 'APPLIED' SCORES;&lt;BR /&gt;
&lt;BR /&gt;
*check correlation between natural and applied scores;&lt;BR /&gt;
proc corr data=pattern10_1;&lt;BR /&gt;
var pred10score1 factor1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*calculate differences and ratio b/w natural and applied scores;&lt;BR /&gt;
&lt;BR /&gt;
proc rank data=pattern10_1 out=ranks;&lt;BR /&gt;
ranks rankpred10 rankfact1;&lt;BR /&gt;
var pred10score1 factor1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=ranks;&lt;BR /&gt;
by pred10score1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data rankdiff;&lt;BR /&gt;
set ranks;&lt;BR /&gt;
difpat1=factor1 - pred10score1;&lt;BR /&gt;
ratiopat1=factor1/pred10score1;&lt;BR /&gt;
difrank=rankpred10 - rankfact1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc means;&lt;BR /&gt;
var difpat1 ratiopat1 difrank;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: UKPhD

Message was edited by: UKPhD</description>
    <pubDate>Tue, 16 Mar 2010 17:00:15 GMT</pubDate>
    <dc:creator>UKPhD</dc:creator>
    <dc:date>2010-03-16T17:00:15Z</dc:date>
    <item>
      <title>PROC SCORE and PROC PLS method = RRR</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/68764#M19693</link>
      <description>Please forgive the long-winded explanation, I am a new SAS user.&lt;BR /&gt;
&lt;BR /&gt;
I am using RRR to create dietary patterns at a baseline time point and using this pattern to look at diet over a 10 year period which requires repeated scores.&lt;BR /&gt;
&lt;BR /&gt;
Using the xweight ods output from PROC PLS RRR I am able to use PROC SCORE to produce a score based on individuals food intake. However, I have hit a problem. To check my methodology, I have applied the PROC SCORE to the same data used in the PROC PLS to create a RRR score. The hypothesis was that the applied and natural scores would be the same, however, they are not. They are systematically different by 11.18%. This same ratio appears if i use the same method in a completely different data set with different x groups .&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any ideas why this very consistent error keeps cropping up? Does anyone have information on the way in which PROC PLS method = RRR applies its xweights to the data to create the score?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help, code below.&lt;BR /&gt;
&lt;BR /&gt;
 Our code:&lt;BR /&gt;
&lt;BR /&gt;
*KEEP CENTRED AND SCALED PREDICTOR (FOOD GROUP) VARIABLES &amp;amp; NATURAL DP&lt;BR /&gt;
SCORE PRODUCED BY EXPL RRR&lt;BR /&gt;
&amp;amp; REMOVE RAW DATA;&lt;BR /&gt;
  data scaled;&lt;BR /&gt;
  set pattern10;&lt;BR /&gt;
  keep cid_477a qlet $foods2&lt;BR /&gt;
  pred10score1 ;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
************************************************************************&lt;BR /&gt;
CONFIRMATORY RRR USING CENTRED AND SCALED DATA;&lt;BR /&gt;
&lt;BR /&gt;
*MAKE XWEIGHTS (SCORING FILE) SUITABLE FOR PROC SCORE;&lt;BR /&gt;
&lt;BR /&gt;
data scores;&lt;BR /&gt;
set rrr10xweights;&lt;BR /&gt;
&lt;BR /&gt;
if Numberoffactors &amp;gt; 1 then delete;*only interested in 1st pattern;&lt;BR /&gt;
drop Numberoffactors;&lt;BR /&gt;
&lt;BR /&gt;
_TYPE_="SCORE";&lt;BR /&gt;
_NAME_="Factor1";&lt;BR /&gt;
&lt;BR /&gt;
/* rename scoring variables to match scaled predictor variable names*/&lt;BR /&gt;
rename $foods = $foods2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*RE-SCORE SCALED AND CENTRED PREDICTOR VARIABLES using scoring&lt;BR /&gt;
coefficients to test confirmatory RRR;&lt;BR /&gt;
&lt;BR /&gt;
proc score data=scaled out=pattern10_1 score=scores type="SCORE"&lt;BR /&gt;
nostd;&lt;BR /&gt;
var $foods2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
***************************************************************************&lt;BR /&gt;
COMPARE 'NATURAL' AND 'APPLIED' SCORES;&lt;BR /&gt;
&lt;BR /&gt;
*check correlation between natural and applied scores;&lt;BR /&gt;
proc corr data=pattern10_1;&lt;BR /&gt;
var pred10score1 factor1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*calculate differences and ratio b/w natural and applied scores;&lt;BR /&gt;
&lt;BR /&gt;
proc rank data=pattern10_1 out=ranks;&lt;BR /&gt;
ranks rankpred10 rankfact1;&lt;BR /&gt;
var pred10score1 factor1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=ranks;&lt;BR /&gt;
by pred10score1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data rankdiff;&lt;BR /&gt;
set ranks;&lt;BR /&gt;
difpat1=factor1 - pred10score1;&lt;BR /&gt;
ratiopat1=factor1/pred10score1;&lt;BR /&gt;
difrank=rankpred10 - rankfact1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc means;&lt;BR /&gt;
var difpat1 ratiopat1 difrank;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: UKPhD

Message was edited by: UKPhD</description>
      <pubDate>Tue, 16 Mar 2010 17:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/68764#M19693</guid>
      <dc:creator>UKPhD</dc:creator>
      <dc:date>2010-03-16T17:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SCORE and PROC PLS method = RRR</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/601197#M76377</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having the same problem and i am surprised no statistician here can help.&lt;/P&gt;&lt;P&gt;Did you finally find a solution to the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 02:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/601197#M76377</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-03T02:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SCORE and PROC PLS method = RRR</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/601222#M76379</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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having the same problem and i am surprised no statistician here can help.&lt;/P&gt;
&lt;P&gt;Did you finally find a solution to the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm skeptical that you have the "same" very specific problem that was described in this message; you may have a similar problem, but it would help if you described your problem in detail, starting from the beginning.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 12:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SCORE-and-PROC-PLS-method-RRR/m-p/601222#M76379</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-03T12:11:40Z</dc:date>
    </item>
  </channel>
</rss>

