Hi I guess you want to create something like this:
You can get this, by following this procedure:
- Create the survival plot as described by @Mark_Bailey before
- Save the combined table under the group outline (open outline of first group, right click into the table, Make Combined Data Table)
- In the new data table it is a good idea to change the Day to ordinal and change the format to 0 decimal places, as well right click on the AtRisk column in the column panel at the middle left of the data table, and select Use for marker. This will show the actual numbers instead of points in the graph we build up
- Graph Builder, day on X, Survival on Y, change to the line element, then select step instead of line in the options for the line element
- Now put Group on Y beneath Survival (not on top!), Put Group also as Overlay.
- Last is to use the filter to only select the groups and not the combined one.
As you will get all the AtRisk Values displayed, you may want to add columns for the required days, e.g. 150, 200, 250, 300, 350 and copy the values of the row with the closest smaller day number into the line respectively. Then use just these as labels. Not sure if this will be very easy compared to a script, but you should get at least close to what you want.
However, a combined window of the survival plot (in the survival platform or in Graph Builder) plus a table created with tabular or summarize, then tabular, will work in a similar fashion.
@ghartel , you mentioned a wish list entry. I cannot find it. Would be great if you could post the link to the entry here, so anyone interested in this can give a kudo to your wish.
/****NeverStopLearning****/