BookmarkSubscribeRSS Feed
lc7033907
Obsidian | Level 7

Hello all,

 

I am learning how to graph Kaplan-Meier Curve. I used sashelp.bmt as an example to practice.   I know how to get the graph with proc lifetest or proc sgplot.  But now I want to add stats (Median time,  log-rank p-value, 95% CI) on the graph, putting them on the topright. 

 

I appreciate any suggestions.  PS.: I like legend arranged in the following.

 

                       ALL   AML-Low Risk   AML-High Risk
Median time            XXX       XXX           XXX 
95% CI                    
log-rank P-value

 

2 REPLIES 2
Reeza
Super User

Have you tried the macros for customizing the graphs available in the documentation? That's usually a good starting point.

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

And many examples also here:

https://blogs.sas.com/content/?s=survival+curves

 


@lc7033907 wrote:

Hello all,

 

I am learning how to graph Kaplan-Meier Curve. I used sashelp.bmt as an example to practice.   I know how to get the graph with proc lifetest or proc sgplot.  But now I want to add stats (Median time,  log-rank p-value, 95% CI) on the graph, putting them on the topright. 

 

I appreciate any suggestions.  PS.: I like legend arranged in the following.

 

                       ALL   AML-Low Risk   AML-High Risk
Median time            XXX       XXX           XXX 
95% CI                    
log-rank P-value

 


 

lc7033907
Obsidian | Level 7

Thank you so much Reeza. I will try  now.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 949 views
  • 3 likes
  • 2 in conversation