<?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: PH assumption in cox model by including interaction term in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309231#M16363</link>
    <description>&lt;P&gt;Please post your log including code submitted. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 11:28:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-04T11:28:19Z</dc:date>
    <item>
      <title>PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309222#M16362</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding evaluating the PH assumption in a Cox model. I did this by introducing an interaction term for my exposure variable. My exposure variable is a categorical variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=mydata;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; time*censor(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;)=exposure exposureT;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;exposureT=exposure*(log(time));&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;However, I get output but also an error in the log-window with: &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;An illegal argument is used in the function call in statement number 1 at line 1331 column 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does this mean and does it influence my output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309222#M16362</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-11-04T10:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309231#M16363</link>
      <description>&lt;P&gt;Please post your log including code submitted. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 11:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309231#M16363</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-04T11:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309235#M16364</link>
      <description>&lt;P&gt;The code is correct. The error message must be because you have time values that are either zero or negative.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 12:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309235#M16364</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-11-04T12:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309660#M16378</link>
      <description>&lt;P&gt;There was one, and I took it out, but the error still persisted!&lt;/P&gt;&lt;P&gt;Is it maybe because it cannot handle missings in the other covariates? Or should that not matter?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309660#M16378</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-11-07T08:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309661#M16379</link>
      <description>&lt;P&gt;I dont think it has to do with missing in covariates.&lt;/P&gt;
&lt;P&gt;Try this variant:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=mydata(where=(time&amp;gt;0));

model time*censor(0)=exposure exposureT;

exposureT=exposure*(log(time));

RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a typing mistake&amp;nbsp;and have corrected this: it should be "&amp;gt;", not "&amp;gt;=", in the where statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 09:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309661#M16379</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-11-07T09:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: PH assumption in cox model by including interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309714#M16382</link>
      <description>&lt;P&gt;Yes, now it runs! Perfect! Thanks a lot! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PH-assumption-in-cox-model-by-including-interaction-term/m-p/309714#M16382</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-11-07T12:58:33Z</dc:date>
    </item>
  </channel>
</rss>

