Help using Base SAS procedures

KM-curve failure plot and modifying the y-axis

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

KM-curve failure plot and modifying the y-axis

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!


Accepted Solutions
Solution
‎08-17-2015 05:30 PM
Super User
Posts: 17,912

Re: KM-curve failure plot and modifying the y-axis

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


All Replies
Solution
‎08-17-2015 05:30 PM
Super User
Posts: 17,912

Re: KM-curve failure plot and modifying the y-axis

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

Occasional Contributor
Posts: 6

Re: KM-curve failure plot and modifying the y-axis

Thanks for the quick reply! :-)

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 693 views
  • 0 likes
  • 2 in conversation