Data visualization with SAS programming

Merge individual survival curves from phreg

Reply
Occasional Contributor
Posts: 13

Merge individual survival curves from phreg

Hellooo!

 

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?

 

Thanks.

Super User
Posts: 22,875

Re: Merge individual survival curves from phreg

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

2. Plot it manually using PROC SGPLOT

 

For 1:

https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html

 

For 2:

https://www.lexjansen.com/pharmasug-cn/2015/ST/PharmaSUG-China-2015-ST56.pdf

 

 

Occasional Contributor
Posts: 13

Re: Merge individual survival curves from phreg

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!

Ask a Question
Discussion stats
  • 2 replies
  • 103 views
  • 1 like
  • 2 in conversation