<?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: PHREG scoring in production in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289269#M15342</link>
    <description>&lt;P&gt;Thanks for posting the solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 15:42:12 GMT</pubDate>
    <dc:creator>pradark</dc:creator>
    <dc:date>2016-08-03T15:42:12Z</dc:date>
    <item>
      <title>PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289259#M15340</link>
      <description>&lt;P&gt;I have developed a COX model using SAS proc phreg procedure. I know how to score using the covariate using the proc procedure. How do I translate the model to simple sas code? if that is possible, then I would like to code it up in python so that it can be implemented on production platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289259#M15340</guid>
      <dc:creator>pradark</dc:creator>
      <dc:date>2016-08-03T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289262#M15341</link>
      <description>&lt;P&gt;The PHREG procedure supports the STORE statement, so I would use that statement to create an item store that contains the model. You can then use PROC PLM to score the model (use the SCORE statement in PROC PLM). This is shown about halfway through&amp;nbsp;the article &lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;"Techniques for scoring a regression model in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you prefer, the PLM procedure also supports the CODE statement (as described in the last section of the article), which you can use to write DATA step code that scores the model.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289262#M15341</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-03T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289269#M15342</link>
      <description>&lt;P&gt;Thanks for posting the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289269#M15342</guid>
      <dc:creator>pradark</dc:creator>
      <dc:date>2016-08-03T15:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289280#M15343</link>
      <description>&lt;P&gt;Is there any differnece in scoring a model between PROC SCORE&amp;nbsp;and&amp;nbsp;&lt;SPAN&gt;SCORE statement in PROC PLM?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 16:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289280#M15343</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-08-03T16:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289295#M15344</link>
      <description>&lt;P&gt;They will both give the same predicted values, but they work a little differently.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SCORE uses parameter estimates that were saved to a SAS data set by the OUTEST= option of a regression procedure. PROC SCORE can be used to evaluate simple linear models. The syntax is extremely simple and the functionality is limited to forming&amp;nbsp;predicted values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In contrast, PROC PLM reads a model that was saved to an item store. It can score more complicated models, such as generalized linear models, mixed models, and survey regression models. In addition to scoring, PROC PLM supports many other post-modeling analyses, such as &lt;A href="http://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;effect plots&lt;/A&gt;&amp;nbsp;and custom hypothesis tests&amp;nbsp;by using the ESTIMATE or LSMESTIMATE statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SCORE is an older procedure. You can think of PROC PLM as "PROC SCORE on steroids"!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/289295#M15344</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-03T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/361629#M19002</link>
      <description>&lt;P&gt;I too would like to see the equation needed to calculate predicted survival times from a Cox Proportional Hazards model I fit using PROC PHREG. &amp;nbsp;I did not find the CODE statement to be an option here. &amp;nbsp;PROC PHREG does not seem to support the CODE statement, only the STORE option. &amp;nbsp;Can you confirm whether CODE is an option with Cox Proportional Hazards models as a way to see the formula needed to calcualte predicted survival times? &amp;nbsp;Thanks!&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 14:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/361629#M19002</guid>
      <dc:creator>TmarNeustar</dc:creator>
      <dc:date>2017-05-25T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: PHREG scoring in production</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/361641#M19006</link>
      <description>&lt;P&gt;right. You can use the STORE statement to save the model, then use the CODE statement or the SCORE statement in PROC PLM to score the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the examples in the article &lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;"Techniques for scoring a regression model in SAS,"&lt;/A&gt;&amp;nbsp;which covers both statements.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PHREG-scoring-in-production/m-p/361641#M19006</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-25T15:06:15Z</dc:date>
    </item>
  </channel>
</rss>

