Programming the statistical procedures from SAS

proc lifetest add number of events at specific time points

Reply
New Contributor
Posts: 2

proc lifetest add number of events at specific time points

Hello everyone,

 

I am new here and I am working on a project where I need to produce KM survival plots, which not only provide the number of patients at risk at specific time-points in a table below the graph but, in addition, I need to provide the number of events, which happend up to these timepoints.

 

I use the following code to produce the number of people at risk at the time points 0, 200, ... 1000 but I have no idea how I can add the number of events that happened at the same time-points. I know how I could add an additional  table with the total number of events during follow-up, but I need to add the more detailed information for the specific time-points. Does anybody know how I can add this?

 

    proc lifetest data=one plots=s(atrisk(outside(0.15))=0 to 1000 by 200); time totexp1 * outexp(0); run;

 

Thank you very much in advance.

 

Best regards,

Li

 

Super User
Super User
Posts: 7,565

Re: proc lifetest add number of events at specific time points

You may be better off taking the output from lifetest and then running that (or doing it directly in) GTL.  Then you can plot whatever data you want, for example these posts may help:

http://blogs.sas.com/content/graphicallyspeaking/2014/02/09/survival-plot/

http://blogs.sas.com/content/graphicallyspeaking/2011/11/28/survival-plot-with-external-at-risk-tabl...

 

Illustrates plotting lifetest outputs with other information below.

New Contributor
Posts: 2

Re: proc lifetest add number of events at specific time points

Thank you for the advice. I'll try that.

Ask a Question
Discussion stats
  • 2 replies
  • 103 views
  • 0 likes
  • 2 in conversation