<?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: Out of sample prediction with PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377363#M19793</link>
    <description>&lt;P&gt;Please describe what you mean by 'out of sample'?&lt;/P&gt;
&lt;P&gt;Do you mean to apply the model from Proc Phreg to a different data set? This is scoring. You can use the STORE option to save the Phreg information and then Proc PLM to score the data pointing to that saved information.&lt;/P&gt;
&lt;P&gt;An example using Proc Mixed from the online help, replace the Proc Mixed code with your proc (though I suggest saving the store information into a different permanent library than SASUSER ) and then point to your store and other data set in the proc Proc Plm Score statement. The Show and LSMEANS are just from the example an you likely don't need them.&lt;/P&gt;
&lt;PRE&gt;proc mixed data=MyBigDataSet;
   class Env A B sub;
   model y = A B x / ddfm=KenwardRoger;
   random int A*B / sub=Env;
   repeated / subject=Env*A*B type=AR(1);
   store sasuser.mixed;
run;

proc plm restore=sasuser.mixed;
   show cov Parms;
   lsmeans A B / diff;
   score data=NewData out=ScoreResults;
run;
&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Jul 2017 14:56:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-07-19T14:56:21Z</dc:date>
    <item>
      <title>Out of sample prediction with PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377202#M19788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to make an out of sample prediction of the survival probability based on my PROC PHREG estimates. Is this possible in SAS?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 08:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377202#M19788</guid>
      <dc:creator>Vari</dc:creator>
      <dc:date>2017-07-19T08:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Out of sample prediction with PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377363#M19793</link>
      <description>&lt;P&gt;Please describe what you mean by 'out of sample'?&lt;/P&gt;
&lt;P&gt;Do you mean to apply the model from Proc Phreg to a different data set? This is scoring. You can use the STORE option to save the Phreg information and then Proc PLM to score the data pointing to that saved information.&lt;/P&gt;
&lt;P&gt;An example using Proc Mixed from the online help, replace the Proc Mixed code with your proc (though I suggest saving the store information into a different permanent library than SASUSER ) and then point to your store and other data set in the proc Proc Plm Score statement. The Show and LSMEANS are just from the example an you likely don't need them.&lt;/P&gt;
&lt;PRE&gt;proc mixed data=MyBigDataSet;
   class Env A B sub;
   model y = A B x / ddfm=KenwardRoger;
   random int A*B / sub=Env;
   repeated / subject=Env*A*B type=AR(1);
   store sasuser.mixed;
run;

proc plm restore=sasuser.mixed;
   show cov Parms;
   lsmeans A B / diff;
   score data=NewData out=ScoreResults;
run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377363#M19793</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-19T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Out of sample prediction with PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377702#M19813</link>
      <description>Thanks you! This seems to have worked. I get predicted values for the new&lt;BR /&gt;observations.&lt;BR /&gt;&lt;BR /&gt;I am not sure, however, how to interpret these predicted values. For about&lt;BR /&gt;99% of the cases the predicted values are negative (and they range between:&lt;BR /&gt;-2.96 to 4.27). How do these relate to failure times or hazard rates?&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 20 Jul 2017 11:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Out-of-sample-prediction-with-PROC-PHREG/m-p/377702#M19813</guid>
      <dc:creator>Vari</dc:creator>
      <dc:date>2017-07-20T11:34:39Z</dc:date>
    </item>
  </channel>
</rss>

