<?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 How to create ROC curves using PROC PHREG? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-ROC-curves-using-PROC-PHREG/m-p/401809#M20952</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to obtain ROC curves using PHREG. SAS user's guide provide following code for SAS 9.4 with SAS/STAT 14.2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc phreg data=Liver concordance plots(overlay=individual)=roc rocoptions(at=2 6);&lt;/P&gt;&lt;P&gt;model Time*Status(0)=Bilirubin Age Edema;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to address left truncation of the data I am using "ENTRY=' option and I am also performing stratified analysis since I have data from multiple studies. I am using following codes-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data=dataset plots(overlay=individual)=roc rocoptions(at=5 10 15 20);&lt;BR /&gt;strata study;&lt;BR /&gt;model time*event(0) = x_num y_num / rl entry=entry_age;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, the "entry" option and "strata" statement does not support ROC analysis. I am getting following messages in the log windows-&lt;/P&gt;&lt;P&gt;"Neither concordance nor ROC analysis is performed with the START/STOP specification of time."&lt;/P&gt;&lt;P&gt;"Neither concordance nor ROC analysis is performed when the STRATA statement is specified."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please suggest a way to get around&amp;nbsp;&lt;SPAN&gt;"entry" option and "strata" statement in order to get ROC curves?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 15:17:20 GMT</pubDate>
    <dc:creator>PBalte</dc:creator>
    <dc:date>2017-10-06T15:17:20Z</dc:date>
    <item>
      <title>How to create ROC curves using PROC PHREG?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-ROC-curves-using-PROC-PHREG/m-p/401809#M20952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to obtain ROC curves using PHREG. SAS user's guide provide following code for SAS 9.4 with SAS/STAT 14.2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc phreg data=Liver concordance plots(overlay=individual)=roc rocoptions(at=2 6);&lt;/P&gt;&lt;P&gt;model Time*Status(0)=Bilirubin Age Edema;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to address left truncation of the data I am using "ENTRY=' option and I am also performing stratified analysis since I have data from multiple studies. I am using following codes-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data=dataset plots(overlay=individual)=roc rocoptions(at=5 10 15 20);&lt;BR /&gt;strata study;&lt;BR /&gt;model time*event(0) = x_num y_num / rl entry=entry_age;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, the "entry" option and "strata" statement does not support ROC analysis. I am getting following messages in the log windows-&lt;/P&gt;&lt;P&gt;"Neither concordance nor ROC analysis is performed with the START/STOP specification of time."&lt;/P&gt;&lt;P&gt;"Neither concordance nor ROC analysis is performed when the STRATA statement is specified."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please suggest a way to get around&amp;nbsp;&lt;SPAN&gt;"entry" option and "strata" statement in order to get ROC curves?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 15:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-ROC-curves-using-PROC-PHREG/m-p/401809#M20952</guid>
      <dc:creator>PBalte</dc:creator>
      <dc:date>2017-10-06T15:17:20Z</dc:date>
    </item>
  </channel>
</rss>

