<?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 SAS Evaluation of the Cox PH Model (derived from the Train set) in the Test Set with Proc Phreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636314#M30461</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that includes about 10 variables and follow-up for death (n= ~2,000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluation the Cox PH model derived from the train set (70%) in the test set (30%).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I have done this so far to try with age (cont.) sex (categorical)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg=test;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How would I use the coefficient derived from the test set and evaluate the performance of the model in the test set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory, I think the regression coefficient values are found by maximizing the partial likelihood,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so simply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi(t)/h0(t)=exp(0.07*age+0.3*sex)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluate this model with Harrell's C-index&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg=test concordance;
/*&amp;lt;----what should be here with regression coefficients from the train set?*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 18:24:57 GMT</pubDate>
    <dc:creator>sasworker16</dc:creator>
    <dc:date>2020-03-31T18:24:57Z</dc:date>
    <item>
      <title>Evaluation of the Cox regression model in the Test Set with PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636319#M30459</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that includes about 10 variables and follow-up for death (n= ~2,000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluation the Cox PH model derived from the train set (70%) in the test set (30%).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I have done this so far to try with age (cont.) sex (categorical)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;proc phreg=train;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I use the coefficient derived from the test set and evaluate the performance of the model in the test set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory, I think the regression coefficient values are found by maximizing the partial likelihood,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so simply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi(t)/h0(t)=exp(0.07*age+0.3*sex)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluate this model with Harrell's C-index&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;proc phreg=test concordance;
/*&amp;lt;----what should be here with regression coefficients from the train set?*/
run;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636319#M30459</guid>
      <dc:creator>sasworker16</dc:creator>
      <dc:date>2020-03-31T18:31:00Z</dc:date>
    </item>
    <item>
      <title>SAS Evaluation of the Cox PH Model (derived from the Train set) in the Test Set with Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636314#M30461</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that includes about 10 variables and follow-up for death (n= ~2,000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluation the Cox PH model derived from the train set (70%) in the test set (30%).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I have done this so far to try with age (cont.) sex (categorical)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg=test;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How would I use the coefficient derived from the test set and evaluate the performance of the model in the test set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory, I think the regression coefficient values are found by maximizing the partial likelihood,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so simply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi(t)/h0(t)=exp(0.07*age+0.3*sex)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to evaluate this model with Harrell's C-index&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg=test concordance;
/*&amp;lt;----what should be here with regression coefficients from the train set?*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636314#M30461</guid>
      <dc:creator>sasworker16</dc:creator>
      <dc:date>2020-03-31T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Evaluation of the Cox PH Model (derived from the Train set) in the Test Set with Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636316#M30462</link>
      <description>&lt;LI-CODE lang="markup"&gt;/*Typo: train, NOT test*/

proc phreg=train;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 *&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:27:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Evaluation-of-the-Cox-regression-model-in-the-Test-Set-with-PROC/m-p/636316#M30462</guid>
      <dc:creator>sasworker16</dc:creator>
      <dc:date>2020-03-31T18:27:38Z</dc:date>
    </item>
  </channel>
</rss>

