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.