<?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 proc phreg, usage of Assess statement to test PH assumption in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60151#M2784</link>
    <description>I have a question:&lt;BR /&gt;
&lt;BR /&gt;
I would like to test the proportional assumption for our data.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
At first, I used,&lt;BR /&gt;
proc phreg data = pfsdays;&lt;BR /&gt;
       class trt;&lt;BR /&gt;
        model ept*eptcen(1) = trt  / rl;         &lt;BR /&gt;
      assess var = (trt) ph; &lt;BR /&gt;
run;  &lt;BR /&gt;
I got : ERROR: Cannot assess the functional form of ATRSORT since it is not &lt;BR /&gt;
a continuous explanatory variable.&lt;BR /&gt;
&lt;BR /&gt;
Then I created a numeric var, trtpn, 0, 1 correspoding to two treatment &lt;BR /&gt;
groups. No error. &lt;BR /&gt;
&lt;BR /&gt;
The code I used is:&lt;BR /&gt;
&lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
proc phreg data = pfsdays;&lt;BR /&gt;
     model ept*eptcen(1) = trtpn  / rl;         &lt;BR /&gt;
     assess var = (trtpn) ph; &lt;BR /&gt;
run;  &lt;BR /&gt;
ods graphics off;&lt;BR /&gt;
&lt;BR /&gt;
I got two plots for the assess statemetns, Cumulative Martingale function form, &lt;BR /&gt;
and Standardized Score Process Plot.&lt;BR /&gt;
&lt;BR /&gt;
I cannot copy the plot here. Sorry.&lt;BR /&gt;
Before day 300, the plot is above 0, fluctuated lot, then after 300, it is still above 0, but almost flat. &lt;BR /&gt;
&lt;BR /&gt;
My question is: since my trtpn only has two values, 0, 1, so I use it in the&lt;BR /&gt;
assess statement is correct, or wrong? If it is correct, how to explain the&lt;BR /&gt;
results? If it is not correct, how to use the “assess” statement to &lt;BR /&gt;
test the ph assumption?&lt;BR /&gt;
&lt;BR /&gt;
Thanks any one!!</description>
    <pubDate>Fri, 29 Apr 2011 15:17:08 GMT</pubDate>
    <dc:creator>likestat</dc:creator>
    <dc:date>2011-04-29T15:17:08Z</dc:date>
    <item>
      <title>proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60151#M2784</link>
      <description>I have a question:&lt;BR /&gt;
&lt;BR /&gt;
I would like to test the proportional assumption for our data.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
At first, I used,&lt;BR /&gt;
proc phreg data = pfsdays;&lt;BR /&gt;
       class trt;&lt;BR /&gt;
        model ept*eptcen(1) = trt  / rl;         &lt;BR /&gt;
      assess var = (trt) ph; &lt;BR /&gt;
run;  &lt;BR /&gt;
I got : ERROR: Cannot assess the functional form of ATRSORT since it is not &lt;BR /&gt;
a continuous explanatory variable.&lt;BR /&gt;
&lt;BR /&gt;
Then I created a numeric var, trtpn, 0, 1 correspoding to two treatment &lt;BR /&gt;
groups. No error. &lt;BR /&gt;
&lt;BR /&gt;
The code I used is:&lt;BR /&gt;
&lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
proc phreg data = pfsdays;&lt;BR /&gt;
     model ept*eptcen(1) = trtpn  / rl;         &lt;BR /&gt;
     assess var = (trtpn) ph; &lt;BR /&gt;
run;  &lt;BR /&gt;
ods graphics off;&lt;BR /&gt;
&lt;BR /&gt;
I got two plots for the assess statemetns, Cumulative Martingale function form, &lt;BR /&gt;
and Standardized Score Process Plot.&lt;BR /&gt;
&lt;BR /&gt;
I cannot copy the plot here. Sorry.&lt;BR /&gt;
Before day 300, the plot is above 0, fluctuated lot, then after 300, it is still above 0, but almost flat. &lt;BR /&gt;
&lt;BR /&gt;
My question is: since my trtpn only has two values, 0, 1, so I use it in the&lt;BR /&gt;
assess statement is correct, or wrong? If it is correct, how to explain the&lt;BR /&gt;
results? If it is not correct, how to use the “assess” statement to &lt;BR /&gt;
test the ph assumption?&lt;BR /&gt;
&lt;BR /&gt;
Thanks any one!!</description>
      <pubDate>Fri, 29 Apr 2011 15:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60151#M2784</guid>
      <dc:creator>likestat</dc:creator>
      <dc:date>2011-04-29T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60152#M2785</link>
      <description>Since your variable is a binary or categorical you should include it in the CLASS statement. That's the essential difference between your two models.  &lt;BR /&gt;
&lt;BR /&gt;
To assess the proportional hazard assumption I usually use the &lt;BR /&gt;
&lt;BR /&gt;
assess ph;&lt;BR /&gt;
&lt;BR /&gt;
OR&lt;BR /&gt;
&lt;BR /&gt;
assess ph resample;&lt;BR /&gt;
&lt;BR /&gt;
line only, as most of my variables are categorical.  This will produce the standardized score plots. If you specify resample as well it will give you a p value to help determine if your data violates the ph assumption.  You can check the docs for more info on those options.&lt;BR /&gt;
&lt;BR /&gt;
I don't know what it means to check the functional form of a variable :(.  &lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Reeza</description>
      <pubDate>Fri, 29 Apr 2011 16:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60152#M2785</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-04-29T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60153#M2786</link>
      <description>Hi Reeza:&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!! I just read you reply. It is very helpful.&lt;BR /&gt;
&lt;BR /&gt;
Now I used: &lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
&lt;BR /&gt;
proc phreg data = days;&lt;BR /&gt;
     class trt;&lt;BR /&gt;
     model pfsdays*cen(1) = trt / rl;         &lt;BR /&gt;
     assess ph resample;     &lt;BR /&gt;
run;  &lt;BR /&gt;
&lt;BR /&gt;
ods graphics off; &lt;BR /&gt;
&lt;BR /&gt;
trt  = A, or B for two treatment arms.&lt;BR /&gt;
&lt;BR /&gt;
I got the result for the test of PH assumption. &lt;BR /&gt;
&lt;BR /&gt;
The treatment effect is not significant. But also, the p_value of the test of PH is also not significant. &lt;BR /&gt;
&lt;BR /&gt;
Can I say PH is violated? I guess not. &lt;BR /&gt;
&lt;BR /&gt;
I pasted the result below. It become not clear. So I&lt;B&gt;&lt;U&gt; bolded and underlined&lt;/U&gt;&lt;/B&gt; the p_value.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!!&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Type 3 Tests&lt;BR /&gt;
&lt;BR /&gt;
                                                    Wald&lt;BR /&gt;
                            Effect      DF    Chi-Square    Pr &amp;gt; ChiSq&lt;BR /&gt;
&lt;BR /&gt;
                            TRT        1        0.0011        0.9730&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                            Analysis of Maximum Likelihood Estimates&lt;BR /&gt;
&lt;BR /&gt;
                             Parameter    Standard                                     Hazard        Parameter    DF    Estimate       Error  Chi-Square  Pr &amp;gt; ChiSq     Ratio        &lt;BR /&gt;
  TRT     A    1    -0.00671        0.19816      0.0011   &lt;U&gt;&lt;B&gt;   0.9730&lt;/B&gt;&lt;/U&gt;        0.993    &lt;BR /&gt;
      &lt;BR /&gt;
                             Analysis of Maximum Likelihood Estimates&lt;BR /&gt;
&lt;BR /&gt;
                               Parameter    Label&lt;BR /&gt;
&lt;BR /&gt;
                               TRT     A  Actual treatment code A&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                       Supremum Test for Proportionals Hazards Assumption&lt;BR /&gt;
&lt;BR /&gt;
                                     Maximum&lt;BR /&gt;
                                     Absolute                                                       Pr &amp;gt;&lt;BR /&gt;
                 Variable       Value         Replications       Seed                MaxAbsVal&lt;BR /&gt;
&lt;BR /&gt;
                 TRT            0.7830            1000                 707007001       &lt;B&gt;&lt;U&gt;0.4640&lt;/U&gt;&lt;/B&gt;</description>
      <pubDate>Sat, 30 Apr 2011 02:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60153#M2786</guid>
      <dc:creator>likestat</dc:creator>
      <dc:date>2011-04-30T02:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60154#M2787</link>
      <description>Looks like there is no trt difference and the proportionality assumption is not violated.&lt;BR /&gt;
&lt;BR /&gt;
If you have only one variable you can also verify your ph assumption using a proc lifetest and getting the log log plot. If the lines are parallel then your assumption is not violated.</description>
      <pubDate>Sat, 30 Apr 2011 02:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60154#M2787</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-04-30T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60155#M2788</link>
      <description>Thanks Reeza!&lt;BR /&gt;
&lt;BR /&gt;
I got the Log (-log(Surv)) too before also. For the earlier days, the two lines are very close with some touching together; later they seperate widely; however, at those days, maybe there are only a few patients left in the study. Probably, we cannot say the assumption is violated. &lt;BR /&gt;
&lt;BR /&gt;
The trt is not significant from both proc lifetest and proc phreg; also I got hazard plot of trt from proc lifetest. They are very close in the early days with a few times of crossing.&lt;BR /&gt;
&lt;BR /&gt;
So, if we report singles HR from the proc phreg output, does it make sense or not? &lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!!</description>
      <pubDate>Sun, 01 May 2011 02:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60155#M2788</guid>
      <dc:creator>likestat</dc:creator>
      <dc:date>2011-05-01T02:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60156#M2789</link>
      <description>If the difference between treatments isn't significant the confidence interval for your hazard ratio should include 1, so make sure to include the 95% confidence interval as well.

Message was edited by: Reeza</description>
      <pubDate>Sun, 01 May 2011 03:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60156#M2789</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-05-01T03:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg, usage of Assess statement to test PH assumption</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60157#M2790</link>
      <description>&amp;gt; If the difference between treatments isn't&lt;BR /&gt;
&amp;gt; significant the confidence interval for your hazard&lt;BR /&gt;
&amp;gt; ratio should include 1, so make sure to include the&lt;BR /&gt;
&amp;gt; 95% confidence interval as well.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: Reeza&lt;BR /&gt;
&lt;BR /&gt;
Hi Reeza:&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
I feel, basically, I am clear now. I got the point. Since the trt is not significant, HR's confident interval should include 1. Our data does include 1, ( 0.674, 1.465).&lt;BR /&gt;
&lt;BR /&gt;
Also, our survival curve, code is below.&lt;BR /&gt;
&lt;BR /&gt;
 proc lifetest data = days plots=( s ls lls h(bw = 15 kernel = e ) );&lt;BR /&gt;
    time pfsdays*cen(1);&lt;BR /&gt;
    strata trt;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
       Test of Equality over Strata&lt;BR /&gt;
&lt;BR /&gt;
                                   Pr &amp;gt;&lt;BR /&gt;
Test      Chi-Square      DF    Chi-Square&lt;BR /&gt;
&lt;BR /&gt;
Log-Rank      0.0449       1      0.8322&lt;BR /&gt;
Wilcoxon      0.3067       1      0.5797&lt;BR /&gt;
-2Log(LR)     0.1083       1      0.7421&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
It is not significant. The survival curve, till about day 120, trt 1 curve is above trt 2 curve with two times trt 1 curve down till touching together. After day 120, trt2 curve is above trt1 curve with  a few times trt 2 down till touching together.&lt;BR /&gt;
&lt;BR /&gt;
I would like to say from this survival curve, trt 1 is better at first, and trt 2 is better later. Is this opinion correct?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!!</description>
      <pubDate>Sun, 01 May 2011 14:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-usage-of-Assess-statement-to-test-PH-assumption/m-p/60157#M2790</guid>
      <dc:creator>likestat</dc:creator>
      <dc:date>2011-05-01T14:33:56Z</dc:date>
    </item>
  </channel>
</rss>

