03-04-2016 06:48 PM - last edited on 03-04-2016 10:26 PM by Reeza
Hi there, I am using this template to output population at risk along the x-axis (see attached). It seems only go up to 15 months. Does anyone have a template allow longer duration like up to 80 months? Or any other way to do it? Using sas 9.2. It you cannot open the attached. Here is how it looks like: 45 32 28 25 20 18 ....................... atrisk trt1 40 31 26 22 19 16 ....................... atrisk trt2 __________________________________ x axis 1 2 3 4 5 6 time (months) Thanks, Anna
03-04-2016 10:32 PM
I have an annotated example below, but it's the survival curve:
03-04-2016 11:16 PM
03-05-2016 01:27 PM
03-05-2016 01:36 PM
So you modified the macro variable below and set the tickvaluelist to a fixed value 0-20 and it still only showed up to 15?
%let xOptions = shortlabel=XNAME offsetmin=.05 linearopts=(viewmax=MAXTIME tickvaluelist=XTICKVALS tickvaluefitpolicy=XTICKVALFITPOL);
03-05-2016 02:09 PM
The Survival Plot template in PROC Lifetest can get quite complex. However, often it is easier to create the basic graph if you can extract the data from proc lifetest using ODS Output. See this article which does exactly that, and then displays the Survival plot with a relatively simple SAS 9.2 template.
03-05-2016 03:29 PM
I tested it out, ran the template and then the sample from the documentation.
I could not replicate your issue.
Please post your proc lifetest code, if @Sanjay_SAS solution doesn't work for you.
03-05-2016 03:53 PM