cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
yousefhan
Level II

Displaying number at Risk on Kaplan Meier curve in JMP pro 17

Can anyone help me in Displaying number at Risk on Kaplan Meier curve in JMP pro 17?

1 REPLY 1

Re: 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.

 

Ross_Metusalem_0-1706823195409.png

 

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:

  • Run the Survival platform on the column Days, and in the resulting report, right click inside the Combined table and choose Make Into Data Table.
  • In the resulting data table, right click the At Risk column header and select Label/Unlabel. Next, select all rows, right click on one of the selected rows, and select Label/Unlabel. Now we've told JMP that we want At Risk values displayed for each row whenever we make a graph.
  • In Graph Builder, put the time column (Days) on the X axis and Survival on the Y. Remove the smoother element and add the line element (and make sure the points element is still in there, too). Find the line element options to the lower left, and under the Connection drop-down, choose Step.

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.

 

Ross Metusalem
JMP Academic Ambassador