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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 923 views
  • 3 likes
  • 2 in conversation