<?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: Proportional hazard hypothesis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758843#M36949</link>
    <description>&lt;P&gt;I think the reason you need to have race as numeric is you are using it in an interaction.&amp;nbsp; Also, your treatment of the null hypothesis of the PH assumption via the test statement is correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 17:23:52 GMT</pubDate>
    <dc:creator>OsoGris</dc:creator>
    <dc:date>2021-08-02T17:23:52Z</dc:date>
    <item>
      <title>Proportional hazard hypothesis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758722#M36938</link>
      <description>&lt;P&gt;Hello&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to perform a Cox model, I am supposed to test the proportional hazard hypothesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On this site &amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/other/examples/asa2/testing-the-proportional-hazard-assumption-in-cox-models/" target="_blank"&gt;https://stats.idre.ucla.edu/other/examples/asa2/testing-the-proportional-hazard-assumption-in-cox-models/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find this suggestion of code :&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=uis;
  model time*censor(0) = age race treat site aget racet treatt sitet;
  aget = age*log(time);
  racet = race*log(time);
  treatt = treat*log(time);
  sitet = site*log(time);
  proportionality_test: test aget, racet, treat, sitet;
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I apply the code with my current variables (where “race” is categorical) I get the error :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Variable race should be either numeric or specified in the CLASS statement&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I add a line for «&amp;nbsp;class age race treat site&amp;nbsp;;&amp;nbsp;» I get :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unable to convert a character value to a numeric value&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Finally the only way to have this program woking is to convert my variable into numeric (white = 1 black = 2 for instance). But is it that I am supposed to do ? I have some doubts here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a second question: When I perform the test, I get a (unique) p-value. If I understand correctly it is when the test is concluant (p-value low) that the hypothesis of proportional hazard is not verified right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much to who will be able to help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 07:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758722#M36938</guid>
      <dc:creator>Azertix</dc:creator>
      <dc:date>2021-08-02T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proportional hazard hypothesis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758843#M36949</link>
      <description>&lt;P&gt;I think the reason you need to have race as numeric is you are using it in an interaction.&amp;nbsp; Also, your treatment of the null hypothesis of the PH assumption via the test statement is correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758843#M36949</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2021-08-02T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proportional hazard hypothesis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758970#M36959</link>
      <description>&lt;P&gt;So racet = race*log(time)&amp;nbsp;; is an interaction not a multiplication even if race is numeric, I am reassured, the test make sens now.&lt;/P&gt;&lt;P&gt;It was counterintuitive for me because in other proc we can create interaction between categorical and numeric variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answers. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 06:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proportional-hazard-hypothesis/m-p/758970#M36959</guid>
      <dc:creator>Azertix</dc:creator>
      <dc:date>2021-08-03T06:47:59Z</dc:date>
    </item>
  </channel>
</rss>

