03-10-2017 06:57 PM
I have written a code to plot a survival curve using PROC LIFETEST:
proc lifetest data=clean.DATABASE3 plots=survival
(FAILURE atrisk (atrisktick maxlen=13 outside)=0 14 30 90 180 365) ;
time time1_C*censor1_C(1) ;
Because I want to better visualize my time points of particular interest, which are before the 365-day mark, I want to modify my x-axis to end at 365 days. However, I don't know how to do this. I tried using the overlay statement, but I don't think I understand how it is supposed to be used:
layout overlay / xaxisopts=(shortlabel=XNAME
Please help. I just wanted to know the simplest way to modify the x-axis when using PROC LIFETEST.
Thanks in advance.
03-10-2017 08:41 PM
Is that all of your proc template code?
Does this help:
Or the newest documentation:
03-13-2017 01:46 PM
Try these xaxisopts and let me know please:
linearopts=(viewmax=365 TICKVALUESEQUENCE=(start = 1 end = 365 increment = 91) ));
This may also work:
linearopts=(viewmax=370 tickvaluelist=(0 14 30 90 180 365) ));