<?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: Train and test split for the proc phreg command in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967948#M48646</link>
    <description>&lt;P&gt;PHREG does not have any options to create test/train data sets or employ bootstrap resampling methods directly.&amp;nbsp; You would need to create them prior to running the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue, which was mentioned previously, is that PH models cannot truly be used to extrapolate beyond the time range of the data that the model was built upon.&amp;nbsp; Trying to automate the process of creating test and train data sets is difficult for that reason--your validation data set would need to have the identical time range as the data set you used to build the model.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 14:46:50 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2025-06-02T14:46:50Z</dc:date>
    <item>
      <title>Train and test split for the proc phreg command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967888#M48642</link>
      <description>&lt;P&gt;I used the PROC PHREG command to create a cox model. How then do I use the train and test split command in the proc phreg command. Or even the option of training the initial model on bootstrap samples.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 11:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967888#M48642</guid>
      <dc:creator>Dylan1</dc:creator>
      <dc:date>2025-06-01T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Train and test split for the proc phreg command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967891#M48643</link>
      <description>&lt;P&gt;I don't understand.&lt;BR /&gt;You could use TRAIN dataset to build a COX model. and using BASELINE statement to score a new dataset. Like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;
data &lt;STRONG&gt;test&lt;/STRONG&gt;;
format gender gender.;
input gender age;
datalines;
0 69.845947
1 69.845947
;
run;

proc phreg data = train plots(overlay)=(survival);
class gender;
model lenfol*fstat(0) = gender age;
baseline &lt;STRONG&gt;covariates=test out=base&lt;/STRONG&gt; / rowid=gender;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.oarc.ucla.edu/sas/seminars/sas-survival/" target="_blank" rel="noopener"&gt;https://stats.oarc.ucla.edu/sas/seminars/sas-survival/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 12:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967891#M48643</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-01T12:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Train and test split for the proc phreg command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967948#M48646</link>
      <description>&lt;P&gt;PHREG does not have any options to create test/train data sets or employ bootstrap resampling methods directly.&amp;nbsp; You would need to create them prior to running the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue, which was mentioned previously, is that PH models cannot truly be used to extrapolate beyond the time range of the data that the model was built upon.&amp;nbsp; Trying to automate the process of creating test and train data sets is difficult for that reason--your validation data set would need to have the identical time range as the data set you used to build the model.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 14:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/967948#M48646</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-06-02T14:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Train and test split for the proc phreg command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/968114#M48649</link>
      <description>&lt;P&gt;Train and test data is relevant for prediction. Then it is probably not a Cox model you want to fit, as the Cox model does not predict anything. It only estimate the hazard rate ratios.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Train-and-test-split-for-the-proc-phreg-command/m-p/968114#M48649</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2025-06-04T11:53:36Z</dc:date>
    </item>
  </channel>
</rss>

