<?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: Survival Analysis with 3 levels of censor in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344548#M18119</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is not working. What I want is to censor &lt;STRONG&gt;survive &amp;gt;5 &lt;/STRONG&gt;for&lt;STRONG&gt; state 2 and state 3 &lt;/STRONG&gt;and get survive &amp;lt;=5 for state=1. If I use the model as follows&lt;/P&gt;&lt;P&gt;proc phreg data=bc.def;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class size (ref ='1') / param=ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model survive*state(&lt;STRONG&gt;2&lt;/STRONG&gt;)=size/ties=exact rl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the model works; but it doesn't provide&amp;nbsp;&lt;SPAN&gt;survive &amp;lt;=5 and it adds state=3 with state=1 (or event=1) which shouldn't be the case. My purpose is to to use the model with the 2 conditions as ... model&amp;nbsp;survive (&lt;STRONG&gt;&amp;lt;=5&lt;/STRONG&gt;)*state(&lt;STRONG&gt;2 &amp;amp;3&lt;/STRONG&gt;)=size/ties=exact rl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 09:12:14 GMT</pubDate>
    <dc:creator>Tawfiq</dc:creator>
    <dc:date>2017-03-27T09:12:14Z</dc:date>
    <item>
      <title>Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344485#M18115</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing survival analysis, and I want to censor data &amp;gt;5 and state=2 or state=3, and the SAS code I'm writing is&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; data=bc.def;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class size (ref ='1') / param=ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model survive(&amp;lt;=5)*state(&lt;STRONG&gt;2|3&lt;/STRONG&gt;)=size/ties=exact rl;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;size&lt;/STRONG&gt; which has 4 categories (1, 2, 3, 4)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;state&lt;/STRONG&gt; which has 3 categories (1, 2, 3), and 1=event&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;survive&lt;/STRONG&gt; should be less than or equal 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder whether it's possible to modify the above code, and get what I intend to do. I appreciate your help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 01:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344485#M18115</guid>
      <dc:creator>Tawfiq</dc:creator>
      <dc:date>2017-03-27T01:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344503#M18116</link>
      <description>&lt;P&gt;Is that working code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a bit uncertain what your question is here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 04:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344503#M18116</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-27T04:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344548#M18119</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is not working. What I want is to censor &lt;STRONG&gt;survive &amp;gt;5 &lt;/STRONG&gt;for&lt;STRONG&gt; state 2 and state 3 &lt;/STRONG&gt;and get survive &amp;lt;=5 for state=1. If I use the model as follows&lt;/P&gt;&lt;P&gt;proc phreg data=bc.def;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class size (ref ='1') / param=ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model survive*state(&lt;STRONG&gt;2&lt;/STRONG&gt;)=size/ties=exact rl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the model works; but it doesn't provide&amp;nbsp;&lt;SPAN&gt;survive &amp;lt;=5 and it adds state=3 with state=1 (or event=1) which shouldn't be the case. My purpose is to to use the model with the 2 conditions as ... model&amp;nbsp;survive (&lt;STRONG&gt;&amp;lt;=5&lt;/STRONG&gt;)*state(&lt;STRONG&gt;2 &amp;amp;3&lt;/STRONG&gt;)=size/ties=exact rl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 09:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344548#M18119</guid>
      <dc:creator>Tawfiq</dc:creator>
      <dc:date>2017-03-27T09:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344580#M18121</link>
      <description>&lt;P&gt;I think you need to precalculate the censor and survival time variables. Use a data step to create new variables that have the values you need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344580#M18121</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-27T11:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344764#M18127</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created two variables (one for censoring and another for survival_5y) and used the model and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344764#M18127</guid>
      <dc:creator>Tawfiq</dc:creator>
      <dc:date>2017-03-27T20:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344933#M18132</link>
      <description>&lt;P&gt;You first need to create a new censoring variable. And you can run your Cox-regression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
   set bc.def;
   if (survive&amp;gt;5)+(state in (2,3)) then censur=1;
  else censur=0;
run;

proc phreg data=mydata;
      class size (ref ='1') / param=ref;
      model survive*censur(1)=size/ties=exact rl;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Good luck:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/344933#M18132</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-03-28T11:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Survival Analysis with 3 levels of censor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/345168#M18156</link>
      <description>&lt;P&gt;Thanks for your help! It also works!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 20:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival-Analysis-with-3-levels-of-censor/m-p/345168#M18156</guid>
      <dc:creator>Tawfiq</dc:creator>
      <dc:date>2017-03-28T20:39:43Z</dc:date>
    </item>
  </channel>
</rss>

