BookmarkSubscribeRSS Feed
wlawrence
Calcite | Level 5

Hello,

 

I am having difficulty adjusting  the  X-axis range for a survival plot using PROC LIFETEST

 

Rather than starting at "0", I want to start at "12000" instead by intervals of "1000"

 

I have written the syntax below

 

ods graphics on;
proc lifetest data=fullcohort2 order=(12000 to 23000 by 1000)
timelist= 12000 13000 14000 15000 16000 17000 18000 19000 20000 21000 22000 23000
plots = survival(atrisk=12000 13000 14000 15000 16000 17000 18000 19000 20000 21000 22000 23000);
time T*Status(0);
strata drug1 drug2 drug3;
run;
ods graphics off;
ods listing;
run;

 

I would like to know the best way to modify the x-axis when using PROC LIFETEST.

 

I am grateful for your help

1 REPLY 1
WarrenKuhfeld
Rhodochrosite | Level 12

http://go.documentation.sas.com/?docsetId=statug&docsetTarget=statug_kaplan_toc.htm&docsetVersion=14...


There is an entire chapter on modifying the Kaplan-Meir plot.  It includes examples of using the procedure options.  It also shows how to modify the template in a special way that works for this graph only.  See if any of these examples help.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 7789 views
  • 0 likes
  • 2 in conversation