- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Kaplan-Meier Analysis
I am very new to JMP. I have some data from SEER - which is a huge sample size and they are survival data. I was trying to create a Kaplan-Meier with that. But I don't know how to code/ prepare the data table for this. I am attaching the table I have. I will appreciate any help.
Time to event | Total patients | Proportion Alive |
0 mo | 42,906 | 1 |
12 mo | 42,906 | 0.938 |
24 mo | 42,906 | 0.894 |
36 mo | 42,906 | 0.867 |
48 mo | 42,906 | 0.85 |
60 mo | 42,906 | 0.839 |
72 mo | 42,906 | 0.83 |
84 mo | 42,906 | 0.822 |
96 mo | 42,906 | 0.811 |
Thank You.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Kaplan-Meier Analysis
You will need to prepare the data in three columns: Time, number died at a given time, and a censoring column. The censoring column is needed to take into account the 81.1% of the patients who are still alive at the end of the trial.
With a little work, I was able to get your data into this form:
months died censor
0 . 0
12 2660 0
24 1888 0
36 1158 0
48 729 0
60 472 0
72 386 0
84 343 0
96 472 0
96 34797 1
I rounded the product of the proportion alive and total patients to get number died. I think due to rounding error, the total number of died in this data doesn't exactly equal 42906. Also, notice that I added a final row to account for the 34797 censored observations (patients still alive at 96 months).
From here, you can use the Survival platform (Y=months, Censor=censor, and Freq=died) or the Life Distribution platform (same roles). If you use the Life Distribution platform, you will probably want to select the "Show Survival Curve" option from the red triangle menu in the Life Distribution report.
Both the Survival and Life Distribution platforms can be found in the Reliability and Survival submenu of the Analyze menu.
Hope this helps!
Michael
Principal Statistical Writer
Manager, Statistical Documentation
JMP Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Kaplan-Meier Analysis
You will need to prepare the data in three columns: Time, number died at a given time, and a censoring column. The censoring column is needed to take into account the 81.1% of the patients who are still alive at the end of the trial.
With a little work, I was able to get your data into this form:
months died censor
0 . 0
12 2660 0
24 1888 0
36 1158 0
48 729 0
60 472 0
72 386 0
84 343 0
96 472 0
96 34797 1
I rounded the product of the proportion alive and total patients to get number died. I think due to rounding error, the total number of died in this data doesn't exactly equal 42906. Also, notice that I added a final row to account for the 34797 censored observations (patients still alive at 96 months).
From here, you can use the Survival platform (Y=months, Censor=censor, and Freq=died) or the Life Distribution platform (same roles). If you use the Life Distribution platform, you will probably want to select the "Show Survival Curve" option from the red triangle menu in the Life Distribution report.
Both the Survival and Life Distribution platforms can be found in the Reliability and Survival submenu of the Analyze menu.
Hope this helps!
Michael
Principal Statistical Writer
Manager, Statistical Documentation
JMP Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Kaplan-Meier Analysis
Years | Death Frequency | Column 3 | Column 4 |
0 | 0 | 0 | |
1 | 6.2 | 0 | SEER |
2 | 4.4 | 0 | SEER |
3 | 2.7 | 0 | SEER |
4 | 1.7 | 0 | SEER |
5 | 1.1 | 0 | SEER |
6 | 0.9 | 0 | SEER |
7 | 0.8 | 0 | SEER |
8 | 1.1 | 0 | SEER |
8 | 81.1 | 1 | SEER |
Thanks Michael. Your answer solved it for me. The only change I made in the table is instead of numbers I converted them to percentages. Which gave me percentages on the Y axis.
Thank you.