Hi all,
I am trying to plot SAS graph for survibval analysis using Proc Lifetest and Proc Gplot. However, I do not know how to change the titles of the horizontal or vertical axes! I am trying to see if the time-to-event differs by sex; my time variable=Time_Months, and censoring variable=Cat(0). The analysis is stratified by sex (Sex).
I am stuck trying to plot the title for the horizontal axis. Thanks for any help!
This is the code i am using:
ODS OUTPUT homtests=homT;
PROC LIFETEST DATA=sur PLOTS=S(NOCENSOR TEST) OUTSURV=LTEstimates;
TIME Time_Months*Cat(0);
STRATA Sex;
RUN;
title 'my data';
axis1 label='my data';
symbol1 line=1 color=blue i=stepj;
symbol2 line=2 color=red i=stepj;
proc gplot data= LTEstimates;
plot survival * Time_Months = Sex/haxis=axis1;
run;
quit;