02-21-2017 09:36 AM
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.
02-21-2017 09:48 AM
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:
Illustrates plotting lifetest outputs with other information below.