From: sas analysis on
Hi,

I am trying to perform a proc life test to get the log rank test in
SAS. I have a longitudinal dataset with multiple observations for each
subject. The question is does SAS recognize that this is a multiple
observation data while running a proc lifetest.

I am using this code:

proc lifetest data=work;
time VISIT*death(0);
strata gender
run;

Also, any ideas of how to get the number of expected and observed. Is
there a command for table. with this code I get the total number
failed and for each group, but not the expected...

Thanks much!