Science, Technology, Innovation, Programming, Progress.
and treatment is a categorical variable with 1 for chemotherapy and 2 for immunotherapy. The following SAS code can be used to conduct a log-rank test and generate a survival plot: ods graphics on; /* enable ODS graphics */ proc lifetest data=cancer plots=survival; /* invoke LIFETEST procedure */