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:
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!
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
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
Thanks for the quick reply! 🙂
The template is called: Stat.Lifetest.Graphics.ProductLimitFailure
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.