<?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 Proportional hazards check for Cox regression with categorical variables? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazards-check-for-Cox-regression-with-categorical/m-p/751989#M36577</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually check the proportional hazards assumption for Cox regression by examining schoenfeld residuals and with the ASSESS statement. My covariates are all categorical (population and temperature treatments).&lt;/P&gt;&lt;P&gt;Is it correct to NOT include a class statement during assumption checking? If I include a CLASS statement, the output is broken down by each level of categorical variable. If I don't, I get an output with the 2 main covariates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code with no CLASS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;PHREG&lt;/STRONG&gt; &lt;SPAN style="font-weight: 400;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=Tia.eco18;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; Day*Status(&lt;/SPAN&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;)=Pop_Code Temp_Code / &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;ties&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=exact;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;OUTPUT&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=b &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;RESSCH&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=SCHPop_Code SCHTemp_Code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt; c;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lDAYS=LOG(Day);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DAYS2=Day**&lt;/SPAN&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;CORR&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;VAR&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; Day LDAYS DAYS2 SCHPop_Code SCHTemp_Code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jul 2021 17:46:03 GMT</pubDate>
    <dc:creator>TiaT</dc:creator>
    <dc:date>2021-07-04T17:46:03Z</dc:date>
    <item>
      <title>Proportional hazards check for Cox regression with categorical variables?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazards-check-for-Cox-regression-with-categorical/m-p/751989#M36577</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually check the proportional hazards assumption for Cox regression by examining schoenfeld residuals and with the ASSESS statement. My covariates are all categorical (population and temperature treatments).&lt;/P&gt;&lt;P&gt;Is it correct to NOT include a class statement during assumption checking? If I include a CLASS statement, the output is broken down by each level of categorical variable. If I don't, I get an output with the 2 main covariates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code with no CLASS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;PHREG&lt;/STRONG&gt; &lt;SPAN style="font-weight: 400;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=Tia.eco18;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; Day*Status(&lt;/SPAN&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;)=Pop_Code Temp_Code / &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;ties&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=exact;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;OUTPUT&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=b &lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;RESSCH&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;=SCHPop_Code SCHTemp_Code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt; c;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;lDAYS=LOG(Day);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DAYS2=Day**&lt;/SPAN&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;CORR&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;VAR&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt; Day LDAYS DAYS2 SCHPop_Code SCHTemp_Code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 17:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazards-check-for-Cox-regression-with-categorical/m-p/751989#M36577</guid>
      <dc:creator>TiaT</dc:creator>
      <dc:date>2021-07-04T17:46:03Z</dc:date>
    </item>
  </channel>
</rss>

