Can anyone help me in Displaying number at Risk on Kaplan Meier curve in JMP pro 17?
Hi, @yousefhan. You can do this with a combination of the Survival platform and Graph Builder.
That example is based on the Rats.jmp sample data set (Help > Sample Index), subsetted down to just Group 1. Here's how to reproduce it:
That'll produce the graph, but depending on your graph frame size and font settings, you may want to click and drag the labels around so they're not crowding each other. And if the labels are so crowded that some might need to be removed, you can deactivate any one of them by right clicking on the corresponding point and selecting Rows > Row Label.
For reference, see the attached data table (the data table created from the Survival report). It contains a table script that will reproduce the graph.
Thank you for sharing this. I have been missing the ability to add Number at Risk for KM plots for many years. In clinical research there is a specific format for presenting the number at risk for KM plots (available in SAS, STATA, and R etc) that would be great to replicate in JMP if possible (and is different than above).
Ive attached a recent example from NEJM to demonstrate, but these plots are ubiquitous in clinical manuscripts. (article at https://www.nejm.org/doi/full/10.1056/NEJMoa2312948 )
If anyone knows how to get this output from JMP or has a plugin or other code that they would like to share, it would be much appreciated!
Best
John
I strongly support the request of adding numbers at risk to the Kaplan-Meier plot and recommend that this request should be put on the JMP wish list because to my insight too the Table as in the figure 3 is really a standard request for Kaplan-Meier Plots.
Best
Winfried