<?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: Proc phreg to Proc score error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409906#M21405</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually fixed the error posted below, as I misspelled "predicted" in one of the lines. However, now I am receiving this. You can see in the last chunk of error messages, only class variables are accepted. I have tried looking up syntax to see what other statement I need for it to accept "riskscore" but have been unsuccessful. Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;640 proc phreg data=riskvalid concordance /*outest=predicted*/;&lt;/P&gt;&lt;P&gt;641 class sex (ref='1') agecat(ref='1') bmicateg(ref='1') diabetes(ref='1') prevap(ref='0')&lt;/P&gt;&lt;P&gt;641! prevmi(ref='0') prevhyp(ref='0') cholcateg(ref='1') smokecateg(ref='1');&lt;/P&gt;&lt;P&gt;642 model timedth*death(0)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp&lt;/P&gt;&lt;P&gt;642! cholcateg smokecateg/rl;&lt;/P&gt;&lt;P&gt;643 /*output out=outp3 xbeta=xb resmart=mart resdev=dev*/ store precitedvalid;&lt;/P&gt;&lt;P&gt;644 run;&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevap has only one level.&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevmi has only one level.&lt;/P&gt;&lt;P&gt;NOTE: 45 observations were deleted due either to missing or invalid values for the time, censoring,&lt;/P&gt;&lt;P&gt;frequency or explanatory variables or to invalid operations in generating the values for some&lt;/P&gt;&lt;P&gt;of the explanatory variables.&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: The PHREG procedure generated the model item store WORK.PRECITEDVALID.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.15 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.29 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;645 proc phreg data=riskvalid concordance /*outest=predicted*/;&lt;/P&gt;&lt;P&gt;646 class sex (ref='1') agecat(ref='1') bmicateg(ref='1') diabetes(ref='1') prevap(ref='0')&lt;/P&gt;&lt;P&gt;646! prevmi(ref='0') prevhyp(ref='0') cholcateg(ref='1') smokecateg(ref='1');&lt;/P&gt;&lt;P&gt;647 model timedth*death(0)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp&lt;/P&gt;&lt;P&gt;647! cholcateg smokecateg/rl;&lt;/P&gt;&lt;P&gt;648 /*output out=outp3 xbeta=xb resmart=mart resdev=dev*/ store predictedvalid;&lt;/P&gt;&lt;P&gt;649 run;&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevap has only one level.&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevmi has only one level.&lt;/P&gt;&lt;P&gt;NOTE: 45 observations were deleted due either to missing or invalid values for the time, censoring,&lt;/P&gt;&lt;P&gt;frequency or explanatory variables or to invalid operations in generating the values for some&lt;/P&gt;&lt;P&gt;of the explanatory variables.&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: The PHREG procedure generated the model item store WORK.PREDICTEDVALID.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.15 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.10 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;650 proc plm restore=predictedvalid;&lt;/P&gt;&lt;P&gt;651 show cov Parms;&lt;/P&gt;&lt;P&gt;652 lsmeans riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg /&lt;/P&gt;&lt;P&gt;652! diff;&lt;/P&gt;&lt;P&gt;ERROR: Only CLASS variables allowed in this effect.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PLM used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;653 score data=NewData out=ScoreResults;&lt;/P&gt;&lt;P&gt;654 run;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 16:09:21 GMT</pubDate>
    <dc:creator>chelseaxxlutz</dc:creator>
    <dc:date>2017-11-02T16:09:21Z</dc:date>
    <item>
      <title>Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409701#M21388</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif" size="2"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="arial,helvetica,sans-serif" size="2"&gt;Using SAS 9.4, I am trying to score my predicted risk values&amp;nbsp;for results from my proc phreg, but am getting an error and do not know how to continue from here. Basically, I have my estimates from proc phreg, then I want to rank my predicted risk and split it into deciles. Please see below for my code and error messages. Thank you in advance for the help!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=riskvalid concordance &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;outest&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predicted;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sex (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) agecat(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) bmicateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) diabetes(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevap(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevmi(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevhyp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) cholcateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) smokecateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;AllCause: &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timedth*death(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=outp3 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xbeta&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=xb &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;resmart&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=mart &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;resdev&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dev;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predicted;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;score&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=riskvalid &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=results &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;score&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predicted &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=parms &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;predict&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=pred;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Variable SEX not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable AGECAT not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable BMICATEG not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable DIABETES not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable PREVAP not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable PREVMI not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable PREVHYP not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable CHOLCATEG not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable SMOKECATEG not found.&lt;/P&gt;&lt;P&gt;584 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.RESULTS may be incomplete. When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.RESULTS was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SCORE used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any reason why all of my variables would disappear? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Chelsea&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 03:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409701#M21388</guid>
      <dc:creator>chelseaxxlutz</dc:creator>
      <dc:date>2017-11-02T03:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409815#M21389</link>
      <description>&lt;P&gt;Your original variables are not used in the analysis.&amp;nbsp; Coded variables made from them are.&amp;nbsp; Run PROC CONTENTS on both data sets and compare them.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409815#M21389</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-02T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409851#M21398</link>
      <description>&lt;P&gt;Try using STORE and then PROC PLM instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_phreg_syntax24.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_phreg_syntax24.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409851#M21398</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-02T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409890#M21402</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried that with the below code and received this new error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=riskvalid concordance &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/*outest=predicted*/&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sex (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) agecat(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) bmicateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) diabetes(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevap(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevmi(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevhyp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) cholcateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) smokecateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;AllCause: &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timedth*death(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/*output out=outp3 xbeta=xb resmart=mart resdev=dev*/&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;store&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; precitedvalid;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The file WORK.PREDICTEDVALID does not exist or it is not a valid item store.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409890#M21402</guid>
      <dc:creator>chelseaxxlutz</dc:creator>
      <dc:date>2017-11-02T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409897#M21403</link>
      <description>&lt;P&gt;Hi Warren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the variables listed in the proc contents of the new dataset, and now get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=riskvalid concordance &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;outest&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predicted;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sex (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) agecat(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) bmicateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) diabetes(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevap(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevmi(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) prevhyp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) cholcateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) smokecateg(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;AllCause: &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timedth*death(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=outp3 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xbeta&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=xb &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;resmart&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=mart &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;resdev&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dev&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/* store precitedvalid*/&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;score&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=riskvalid &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=results &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;score&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predicted &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=parms &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;predict&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=pred;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; riskscore sex2 agecat2 agecat3 agecat4 bmicateg2 bmicateg3 diabetes0 prevhyp1 cholcateg2 cholcateg3 cholcateg4 smokecateg2 smokecateg3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable sex2 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable agecat2 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable agecat3 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable agecat4 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable bmicateg2 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable bmicateg3 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable diabetes0 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable prevhyp1 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable cholcateg2 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable cholcateg3 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable cholcateg4 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable smokecateg2 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;ERROR: In the DATA= data set, cannot find the variable smokecateg3 from the SCORE= data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409897#M21403</guid>
      <dc:creator>chelseaxxlutz</dc:creator>
      <dc:date>2017-11-02T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409899#M21404</link>
      <description>&lt;P&gt;Please post your full log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can recode this to work with SASHELP.HEART or provide sample data we can test this before making suggestions.....&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409899#M21404</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-02T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409906#M21405</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually fixed the error posted below, as I misspelled "predicted" in one of the lines. However, now I am receiving this. You can see in the last chunk of error messages, only class variables are accepted. I have tried looking up syntax to see what other statement I need for it to accept "riskscore" but have been unsuccessful. Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;640 proc phreg data=riskvalid concordance /*outest=predicted*/;&lt;/P&gt;&lt;P&gt;641 class sex (ref='1') agecat(ref='1') bmicateg(ref='1') diabetes(ref='1') prevap(ref='0')&lt;/P&gt;&lt;P&gt;641! prevmi(ref='0') prevhyp(ref='0') cholcateg(ref='1') smokecateg(ref='1');&lt;/P&gt;&lt;P&gt;642 model timedth*death(0)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp&lt;/P&gt;&lt;P&gt;642! cholcateg smokecateg/rl;&lt;/P&gt;&lt;P&gt;643 /*output out=outp3 xbeta=xb resmart=mart resdev=dev*/ store precitedvalid;&lt;/P&gt;&lt;P&gt;644 run;&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevap has only one level.&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevmi has only one level.&lt;/P&gt;&lt;P&gt;NOTE: 45 observations were deleted due either to missing or invalid values for the time, censoring,&lt;/P&gt;&lt;P&gt;frequency or explanatory variables or to invalid operations in generating the values for some&lt;/P&gt;&lt;P&gt;of the explanatory variables.&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: The PHREG procedure generated the model item store WORK.PRECITEDVALID.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.15 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.29 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;645 proc phreg data=riskvalid concordance /*outest=predicted*/;&lt;/P&gt;&lt;P&gt;646 class sex (ref='1') agecat(ref='1') bmicateg(ref='1') diabetes(ref='1') prevap(ref='0')&lt;/P&gt;&lt;P&gt;646! prevmi(ref='0') prevhyp(ref='0') cholcateg(ref='1') smokecateg(ref='1');&lt;/P&gt;&lt;P&gt;647 model timedth*death(0)=riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp&lt;/P&gt;&lt;P&gt;647! cholcateg smokecateg/rl;&lt;/P&gt;&lt;P&gt;648 /*output out=outp3 xbeta=xb resmart=mart resdev=dev*/ store predictedvalid;&lt;/P&gt;&lt;P&gt;649 run;&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevap has only one level.&lt;/P&gt;&lt;P&gt;NOTE: The CLASS variable prevmi has only one level.&lt;/P&gt;&lt;P&gt;NOTE: 45 observations were deleted due either to missing or invalid values for the time, censoring,&lt;/P&gt;&lt;P&gt;frequency or explanatory variables or to invalid operations in generating the values for some&lt;/P&gt;&lt;P&gt;of the explanatory variables.&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: The PHREG procedure generated the model item store WORK.PREDICTEDVALID.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.15 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.10 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;650 proc plm restore=predictedvalid;&lt;/P&gt;&lt;P&gt;651 show cov Parms;&lt;/P&gt;&lt;P&gt;652 lsmeans riskscore sex agecat bmicateg diabetes prevap prevmi prevhyp cholcateg smokecateg /&lt;/P&gt;&lt;P&gt;652! diff;&lt;/P&gt;&lt;P&gt;ERROR: Only CLASS variables allowed in this effect.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PLM used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;653 score data=NewData out=ScoreResults;&lt;/P&gt;&lt;P&gt;654 run;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409906#M21405</guid>
      <dc:creator>chelseaxxlutz</dc:creator>
      <dc:date>2017-11-02T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg to Proc score error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409985#M21414</link>
      <description>&lt;P&gt;Do you need the LSMEANS? From your description, I assume you'd use a SCORE statement instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples of how to score are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-to-Proc-score-error/m-p/409985#M21414</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-02T19:46:13Z</dc:date>
    </item>
  </channel>
</rss>

