BookmarkSubscribeRSS Feed
Melk
Lapis Lazuli | Level 10

I want to overlay a few survival plots (for different outcome events) on top of each other, each have the same stratas so preferably each outcome would be a different color, and strata would be defined by slide vs. dashed line. Is there any easy way to do this in lifetest? 

4 REPLIES 4
Reeza
Super User

What does the code look like? For a very customized plot you can use SGPLOT very easily and customizing would be relatively straightforward as well. I'm curious how you're handling the different outcomes and strata within PROC LIFETEST.

 


@Melk wrote:

I want to overlay a few survival plots (for different outcome events) on top of each other, each have the same stratas so preferably each outcome would be a different color, and strata would be defined by slide vs. dashed line. Is there any easy way to do this in lifetest? 


 

Tpain
Calcite | Level 5

Hello everyone,,

I want to overlay a few survival plots (for different outcome events) on top of each other, each have the same stratas so preferably each outcome would be a different color, and strata would be defined by slide vs. dashed line. Is there any easy way to do this in lifetest???

Reeza
Super User

This  macro is a better option:

https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/...

 


@Tpain wrote:

Hello everyone,,

I want to overlay a few survival plots (for different outcome events) on top of each other, each have the same stratas so preferably each outcome would be a different color, and strata would be defined by slide vs. dashed line. Is there any easy way to do this in lifetest???


 

SAS Innovate 2025: Register Today!

 

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1440 views
  • 0 likes
  • 4 in conversation