<?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 Lifetest in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest/m-p/295939#M15765</link>
    <description>&lt;P&gt;It is not possible with proc lifetest.&lt;/P&gt;
&lt;P&gt;Instead you can use proc phreg, which do a Cox regression. Here you can include a contionous variable as a predictor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scoretest in a Cox-regression is equivalent to a logrank test when you have a class variable, so in some sense you can say the score test generalize the logrank test since it can be used also with continous variables. It is very easy to get out of phreg. Here a simple example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data simulation;
	 do i=1 to 1000;
	   y=rand('normal',0,1);
	   t=rand('exponential',10/exp(y));
	   output;
  end;
run;
proc phreg data=simulation;
  model t=y/type3(all);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 17:07:10 GMT</pubDate>
    <dc:creator>JacobSimonsen</dc:creator>
    <dc:date>2016-09-01T17:07:10Z</dc:date>
    <item>
      <title>Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest/m-p/295922#M15764</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to use a continuous variable (x) instead of time in the proc lifetest procedure to model the difference of event rates between treatment arms with increasing variable x...and then use the log-rank p-value?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest/m-p/295922#M15764</guid>
      <dc:creator>DFA</dc:creator>
      <dc:date>2016-09-01T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest/m-p/295939#M15765</link>
      <description>&lt;P&gt;It is not possible with proc lifetest.&lt;/P&gt;
&lt;P&gt;Instead you can use proc phreg, which do a Cox regression. Here you can include a contionous variable as a predictor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scoretest in a Cox-regression is equivalent to a logrank test when you have a class variable, so in some sense you can say the score test generalize the logrank test since it can be used also with continous variables. It is very easy to get out of phreg. Here a simple example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data simulation;
	 do i=1 to 1000;
	   y=rand('normal',0,1);
	   t=rand('exponential',10/exp(y));
	   output;
  end;
run;
proc phreg data=simulation;
  model t=y/type3(all);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest/m-p/295939#M15765</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-09-01T17:07:10Z</dc:date>
    </item>
  </channel>
</rss>

