BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ChrisMac
Fluorite | Level 6

Hi,

I am creating Kaplan-Meier curves by using the PROC LIFETEST statement. To modify the y-axis, I modify the survival template and create macros as described here:

http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_templt_a0000...

However, these macros do not affect any graph that uses graph templates other than those described in the link. This means that these macros cannot be applied when creating a failure plot instead of a survival plot. I want to create failure plots (by using PROC LIFETEST and plots=survival(failure)) and change the y-axis.

How do I find the failure plot template and how should it be modified?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

You can modify your failure plot template similarly.

Run the proc with ODS TRACE ON and look at the output in the log. It will let you know the template for the failure plot.

For example, this is the template for the survival plot:

Stat.Lifetest.Graphics.ProductLimitSurvival

Change the template name in the macro code and then your changes will follow through Smiley Happy

View solution in original post

2 REPLIES 2
Reeza
Super User

You can modify your failure plot template similarly.

Run the proc with ODS TRACE ON and look at the output in the log. It will let you know the template for the failure plot.

For example, this is the template for the survival plot:

Stat.Lifetest.Graphics.ProductLimitSurvival

Change the template name in the macro code and then your changes will follow through Smiley Happy

ChrisMac
Fluorite | Level 6

Thanks for the quick reply! 🙂

The template is called: Stat.Lifetest.Graphics.ProductLimitFailure

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 2883 views
  • 0 likes
  • 2 in conversation