About this example
The NCCTG lung cancer data (Loprinzi et al., J Clin Oncol 1994) ship with R’s survival package and are the most widely used example of a Kaplan–Meier analysis: 228 patients with advanced lung cancer, followed for up to about 1,000 days.
Women lived longer than men: median survival was 426 days (95% CI 348 to 550) against 270 days (212 to 310), log-rank P = 0.001, and the hazard ratio for women was 0.59 (95% CI 0.42 to 0.82). CleanFigure reproduces these numbers from R exactly. The number-at-risk table shows how few patients remain beyond 800 days, where the curves are least certain.
The data
| Days | Status | Sex |
|---|---|---|
| 306 | 1 | Male |
| 455 | 1 | Male |
| 1010 | 0 | Male |
| 210 | 1 | Male |
| 883 | 1 | Male |
| 1022 | 0 | Male |
| 310 | 1 | Female |
| 361 | 1 | Female |
| 218 | 1 | Male |
| 166 | 1 | Male |
| 170 | 1 | Male |
| 654 | 1 | Female |
| 728 | 1 | Female |
| 71 | 1 | Male |
| 567 | 1 | Male |
…and 213 more rows. Open the example to see all of them.
Open the example, replace the data with your own, and export the figure as SVG, PDF, PNG or TIFF.