Statistical FAQs
How can I distinguish the different survival curves in JMP's Kaplan-Meier Survival Plot when printing on a black and white printer?
Currently, there is no way in JMP to change the fitted stepped lines in thedefault Survival Plot. However, a process involving a few steps can befollowed to get the characteristics desired (different line styles displayedfor the different survival groups). Using the RATS.JMP data table found in the Sample Data folder, follow the steps below. Some steps are slightly different depending on the version of JMP being used (Version 4 or Version 5), but the differences are noted in the steps.
- Open RATS.JMP.
- In Version 4, select > > .
In Version 5 and higher, select > > . - Specify 'Y, Time to Event'='days', 'Grouping'='Group', and 'Censor'='Censor'. Click .
- From the menu in the resulting output, select .
- In the new data table, delete all columns except , , and .
- Delete all rows where = or =. (unless you want to include the combined line).
- In Version 4, select > .
- Highlight , and click .
- Highlight the column listing and click .
- Highlight and click the button.
- Click .
In Version 5, select > .
- Highlight , and click .
- Highlight the column listing and click .
- Highlight and click the button.
- Click .
- Highlight , and click .
- Highlight the column listing and click .
- Highlight and click the button.
- Click .
- In Version 4, create two new columns, , and with formulas to replace missing values with the survival
probability in the previous row.
**This step is not necessary if running V5 or higher.
The exact formulas are below:
- In Version 4, select > . Specify Y='G1' and 'G2', and X='days'. Click .
In Version 5 and higher, select > . Specify Y='Group 1' and 'Group 2', and X='Days'. Click . - From the red arrow pulldown menu, choose . From the same menu, select > , and > . Now, each line can be modified as necessary by right-clicking on the legend values and changing the color and line style of the corresponding group.
In JMP 6, select > .
|
G1: If(Row() == 1, 1, Is Missing( :Group 1[Row()]), :G1[Row() - 1], :Group 1) |
|
G2: If(Row() == 1, 1, Is Missing( :Group 2[Row()]), :G2[Row() - 1], :Group 2) |
Again, if you are running JMP 5 or later, then the new columns , and need not be created. The and columns can be plotted. Alternatively, if Version 5 or later is being used, the Survival Plot JSL script can be used.
FAQ # 1297
Last Updated: 2005 Aug 26
Browse JMP FAQs
Support Documents
Contact JMP Support
919.677.8008 (US)

