<?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 Cox Snell Residual Plots for Cox PH and AFT models in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Snell-Residual-Plots-for-Cox-PH-and-AFT-models/m-p/368590#M19342</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know which cumulative hazard we will get when run the code for Cox-Snell Residual Plots.&lt;/P&gt;&lt;P&gt;Is it Kaplan-Meier(Green wood) method cumulative hazard or Nelson Aalen method cumulative hazard.&lt;/P&gt;&lt;P&gt;I am giving the code can anyone please help me which method cumulative hazard it has taken.&lt;/P&gt;&lt;P&gt;If it is taken for Kaplan Meier Method then how will get for Nelson Aalen method and vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Code&lt;/P&gt;&lt;P&gt;/*Exponential Distribution*/&lt;/P&gt;&lt;P&gt;proc lifereg data=bc.data;&lt;BR /&gt;model survivaltimenew*DEATH(0)=recu mets clinstage par agegr/dist=exponential;&lt;BR /&gt;output out=csr1expo xbeta=xb cres=cr;&lt;BR /&gt;run;&lt;BR /&gt;proc lifetest data=csr1expo outsurv=surv1expo;&lt;BR /&gt;time cr*DEATH(0);&lt;BR /&gt;run;&lt;BR /&gt;data surv1expo1;&lt;BR /&gt;set surv1expo;&lt;BR /&gt;hkm=-log(survival);&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;title "Exponential Distribution";&lt;BR /&gt;symbol1 v=none i=join line=1 c=black ci=black;&lt;BR /&gt;symbol2 v=none i=join line=2 c=black ci=black;&lt;BR /&gt;axis1 label=(a=90 'Cumulative Hazard') minor=none;&lt;BR /&gt;axis2 label=('Cox-Snell Residuals') minor=none;&lt;BR /&gt;proc gplot data=surv1expo1;&lt;BR /&gt;plot (cr hkm)*cr/ overlay vaxis=axis1 haxis=axis2 noframe;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Cox PH or Cox Regression*/&lt;BR /&gt;proc phreg data=bc.data;&lt;BR /&gt;model survivaltimenew*DEATH(0)=recu mets clinstage par agegr;&lt;BR /&gt;output out=coxph logsurv=h /method=ch;&lt;BR /&gt;run;&lt;BR /&gt;data coxph1;&lt;BR /&gt;set coxph;&lt;BR /&gt;h=-h;&lt;BR /&gt;cons=1;&lt;BR /&gt;run;&lt;BR /&gt;proc phreg data=coxph1;&lt;BR /&gt;model h*DEATH(0)=cons;&lt;BR /&gt;output out=ph logsurv=ls /method=ch;&lt;BR /&gt;run;&lt;BR /&gt;data ph1;&lt;BR /&gt;set ph;&lt;BR /&gt;haz=-ls;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ph1;&lt;BR /&gt;by h;&lt;BR /&gt;run;&lt;BR /&gt;title "Cox PH Model";&lt;BR /&gt;axis1 minor=none;&lt;BR /&gt;axis2 &amp;nbsp;minor=none label=(a=90);&lt;BR /&gt;symbol1 i=join c=black line=2;&lt;BR /&gt;symbol2 i=join c=black line=1;&lt;BR /&gt;proc gplot data=ph1;&lt;BR /&gt;plot haz*h =1 h*h=2 /overlay haxis=axis1 vaxis=axis2 noframe;&lt;BR /&gt;label haz="Cumulative Hazard";&lt;BR /&gt;label h="Cox-Snell Residuals";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope to see get early reply and get this query solved by as soon as possible from SAS community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sairam Pulipati&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 06:56:35 GMT</pubDate>
    <dc:creator>Sairampulipati</dc:creator>
    <dc:date>2017-06-20T06:56:35Z</dc:date>
    <item>
      <title>Cox Snell Residual Plots for Cox PH and AFT models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Snell-Residual-Plots-for-Cox-PH-and-AFT-models/m-p/368590#M19342</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know which cumulative hazard we will get when run the code for Cox-Snell Residual Plots.&lt;/P&gt;&lt;P&gt;Is it Kaplan-Meier(Green wood) method cumulative hazard or Nelson Aalen method cumulative hazard.&lt;/P&gt;&lt;P&gt;I am giving the code can anyone please help me which method cumulative hazard it has taken.&lt;/P&gt;&lt;P&gt;If it is taken for Kaplan Meier Method then how will get for Nelson Aalen method and vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Code&lt;/P&gt;&lt;P&gt;/*Exponential Distribution*/&lt;/P&gt;&lt;P&gt;proc lifereg data=bc.data;&lt;BR /&gt;model survivaltimenew*DEATH(0)=recu mets clinstage par agegr/dist=exponential;&lt;BR /&gt;output out=csr1expo xbeta=xb cres=cr;&lt;BR /&gt;run;&lt;BR /&gt;proc lifetest data=csr1expo outsurv=surv1expo;&lt;BR /&gt;time cr*DEATH(0);&lt;BR /&gt;run;&lt;BR /&gt;data surv1expo1;&lt;BR /&gt;set surv1expo;&lt;BR /&gt;hkm=-log(survival);&lt;BR /&gt;run;&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;title "Exponential Distribution";&lt;BR /&gt;symbol1 v=none i=join line=1 c=black ci=black;&lt;BR /&gt;symbol2 v=none i=join line=2 c=black ci=black;&lt;BR /&gt;axis1 label=(a=90 'Cumulative Hazard') minor=none;&lt;BR /&gt;axis2 label=('Cox-Snell Residuals') minor=none;&lt;BR /&gt;proc gplot data=surv1expo1;&lt;BR /&gt;plot (cr hkm)*cr/ overlay vaxis=axis1 haxis=axis2 noframe;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Cox PH or Cox Regression*/&lt;BR /&gt;proc phreg data=bc.data;&lt;BR /&gt;model survivaltimenew*DEATH(0)=recu mets clinstage par agegr;&lt;BR /&gt;output out=coxph logsurv=h /method=ch;&lt;BR /&gt;run;&lt;BR /&gt;data coxph1;&lt;BR /&gt;set coxph;&lt;BR /&gt;h=-h;&lt;BR /&gt;cons=1;&lt;BR /&gt;run;&lt;BR /&gt;proc phreg data=coxph1;&lt;BR /&gt;model h*DEATH(0)=cons;&lt;BR /&gt;output out=ph logsurv=ls /method=ch;&lt;BR /&gt;run;&lt;BR /&gt;data ph1;&lt;BR /&gt;set ph;&lt;BR /&gt;haz=-ls;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ph1;&lt;BR /&gt;by h;&lt;BR /&gt;run;&lt;BR /&gt;title "Cox PH Model";&lt;BR /&gt;axis1 minor=none;&lt;BR /&gt;axis2 &amp;nbsp;minor=none label=(a=90);&lt;BR /&gt;symbol1 i=join c=black line=2;&lt;BR /&gt;symbol2 i=join c=black line=1;&lt;BR /&gt;proc gplot data=ph1;&lt;BR /&gt;plot haz*h =1 h*h=2 /overlay haxis=axis1 vaxis=axis2 noframe;&lt;BR /&gt;label haz="Cumulative Hazard";&lt;BR /&gt;label h="Cox-Snell Residuals";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope to see get early reply and get this query solved by as soon as possible from SAS community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sairam Pulipati&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 06:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cox-Snell-Residual-Plots-for-Cox-PH-and-AFT-models/m-p/368590#M19342</guid>
      <dc:creator>Sairampulipati</dc:creator>
      <dc:date>2017-06-20T06:56:35Z</dc:date>
    </item>
  </channel>
</rss>

