BookmarkSubscribeRSS Feed
DFA
Calcite | Level 5 DFA
Calcite | Level 5

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?

1 REPLY 1
JacobSimonsen
Barite | Level 11

It is not possible with proc lifetest.

Instead you can use proc phreg, which do a Cox regression. Here you can include a contionous variable as a predictor.

 

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:

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;

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1368 views
  • 0 likes
  • 2 in conversation