BookmarkSubscribeRSS Feed
Fluorite | Level 6



I would like to merge 3 individual survival curves on the same plot (Note: I'm using phreg and not lifetest). I have 3 different equations (same X but different Y- my Y is mortality: cancer, cardiovascular and all-cause) generating 3 individual survival curves and would now like to represent all three on the same graph. Is this possible in SAS? If yes, how????? If no, what other software do you know of that can allow me to do that?



Super User

1. Capture the data for each plot from the PROC PHREG procedure

2. Plot it manually using PROC SGPLOT


For 1:


For 2:



Fluorite | Level 6

Thanks for the resources! Looks feasible although I've tried some those that included lifetest and they don't all work with phreg. That being said, I've never plotted them on sgplot. I'll try it out and update!



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. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1 like
  • 2 in conversation