所以此处的期即为病人的病情?3期最严重?我推测你要比较肿瘤病人分期的生存状况。
If not to adjust for other covariates, Kaplan-Meier in proc LIFETEST can be used to plot survival curves and to give the log-rank test for the difference among the survivals. Otherwise, for multivariable model, COX in proc PHREG can be used to compare the differences among groups and give the hazard ratios between groups, after adjusting for other cofounders. Of course, you need to know some concepts, such as censor, event, survival, hazard, and so on. I would recommend you reading a book by Paul Allison. This is an old book (in 1998) but very instructive on survival analysis using SAS.
The sample code should be like:
[code:1w9i7dj3]proc lifetest plots=(survival);
cancer: time time*censor(0);
strata group;*group in (1 2 3);
run;
proc phreg;
class group;
model time*censor(0) = group/rl;
run;[/code:1w9i7dj3]