<?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: PROC PHREG interaction definition in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313742#M16526</link>
    <description>Thank you very much for the help.&lt;BR /&gt;I really appreciate it.</description>
    <pubDate>Wed, 23 Nov 2016 11:11:32 GMT</pubDate>
    <dc:creator>scan</dc:creator>
    <dc:date>2016-11-23T11:11:32Z</dc:date>
    <item>
      <title>PROC PHREG interaction definition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313535#M16509</link>
      <description>&lt;P&gt;Dear Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on a paper found on the web (source: &lt;A href="http://www.biostat.umn.edu/~will/6470stuff/Class27-12/Handout27.pdf" target="_blank"&gt;http://www.biostat.umn.edu/~will/6470stuff/Class27-12/Handout27.pdf&lt;/A&gt;) &lt;BR /&gt;I'm trying to replicate the analysis starting from slide 22 (page 11), therefore I'm trying to test the hazards assumpion of "ratio hazards is a costant that does not depent on time", let's say testing if the hazard ration changes over time.&lt;BR /&gt;Basically I'm adding a predictor for group*time interaction and evaluating if is not zero looking at the p-value for ChiSquare test (for the PS_time in the following code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc PHreg data=breast_cancer; 
class positive_stain; 
model surv_months * died(0) = positive_stain PS_time / risklimits ties=efron; &lt;BR /&gt;&lt;/CODE&gt;PS_time = positive_stain * surv_months;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But, before finding this "paper" I wrote&amp;nbsp;the same code with the only difference of adding the interaction directly in the model statement and, for some reason, I found different results for significance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc PHreg data=breast_cancer; 
class positive_stain; 
model surv_months * died(0) = positive_stain positive_stain * surv_months / risklimits ties=efron; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone explain me why this is happening, and maybe which is the correct code to be launched in order to test the proportional hazards assumption (detailing the reasons)?&lt;BR /&gt;&lt;BR /&gt;Many thanks for taking the time to read this,&lt;/P&gt;
&lt;P&gt;Gianlu&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313535#M16509</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2016-11-22T17:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PHREG interaction definition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313727#M16525</link>
      <description>&lt;P&gt;if you put the time directly into the right side in the&amp;nbsp;model statement then you will conditioning with the future. It doesnt give meaningfull estimates. It happens because when it evaluates the risk at t0 for an&amp;nbsp;individual with survival time = t1, then it use the information that the person was either dead or censored at t1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you construct the variable PS_time inside phreg, then ps_time is updated along the time axis. it means that the same individual can takes different values of ps_time. The time value surv_months used to constrict ps_time is not fixed for an individual, it takes all values of risk-set times up to the value of the time of censoring or death.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 10:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313727#M16525</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-11-23T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PHREG interaction definition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313742#M16526</link>
      <description>Thank you very much for the help.&lt;BR /&gt;I really appreciate it.</description>
      <pubDate>Wed, 23 Nov 2016 11:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-interaction-definition/m-p/313742#M16526</guid>
      <dc:creator>scan</dc:creator>
      <dc:date>2016-11-23T11:11:32Z</dc:date>
    </item>
  </channel>
</rss>

