Running a Kaplan-Meier analysis with XLSTAT-Life

Dataset for Kaplan-Meier analysis XLS208 KB

Tutorial video
Kaplan-Meier analysis is part of: Download Trial version More details See users' feedback
  • Life Survival analysis software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7/Win 8
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.


  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Dataset to run a Kaplan-Meier analysis

An Excel sheet with both the data and results can be downloaded by clicking here.

The data have been obtained in [Gehan E.A. (1965). A generalized Wilcoxon test for comparing arbitrarily singly-censored samples. Biometrika, 52, pp 203—223] and represent a randomized clinical trial investigating the effect of the drug 6-mercaptopurine on remission times (in weeks) of acute leukemia patients.

Goal of this Kaplan-Meier analysis

Our goal is to determine if and how the drug influences the survival time, by comparing the survival curves for two groups of 21 patients, the first being treated, and the second being a control group. All 21 patients of the control group were observed to have a recurrence of their leukemia. Only 9 of the 6-MP patients had an observed recurrence time, while the 12 others were censored.

Setting up a Kaplan-Meier analysis

After opening XLSTAT, select the XLSTAT / XLSTAT-Life / Kaplan-Meier analysis command, or click on the corresponding button of the XLSTAT-Life toolbar (see below).


Once you've clicked on the button, the Kaplan-Meier analysis box will appear. Select the data on the Excel sheet.

The Time data corresponds to the durations when the patients either relapsed or were censored.

The Status indicator describes whether a patient relapsed (event code=1) or was censored (censored code = 0) at a given time.

Kaplan Meier Dialog box general tab

In the Data options tab, activate the By group analysis and select the group information in the data field. Thus XLSTAT will take into account the information whether the patient belongs to the control or the treated group. Activate the Compare option so that the comparison tests are computed. The Filter option allows you to select precisely the groups on which you wish to perform the analysis.

Kaplan Meier Dialog box data options tab

In the Charts tab, activate the charts you wish to display, and choose the symbol you want to use to represent Censored data.

Kaplan Meier Dialog box Charts tab

The computations begin once you have clicked on OK. The results will then be displayed on a new Excel sheet.

Interpreting the results of a Kaplan-Meier analysis

The first table displays a summary of the data for each group:

Kaplan Meier Result 1

Then XLSTAT displays results specific to each group. It starts with the Control group.

First, the Kaplan-Meier table is displayed.  It contains the results of the Kaplan-Meier analysis with several key indicators such as the Survival distribution function.

Kaplan Meier Result 2 

The next tables give the mean and median survival time and the respective confidence intervals. 

Kaplan Meier Result 3 

Then, we can visualize several curves, including the survival distribution function (SDF, or survivor function, or reliability function), bounded by the confidence intervals. 

Kaplan Meier Result 4 

Next, the same series of results is displayed for the Drug 6-MP group.

Kaplan Meier Result 5 

The following results contain some values that are missing because they could not be computed.

We notice that the median survival time is a lot lower for the control group than for the 6-MP group (8.667 vs 21.943). 

Kaplan Meier Result 6  

In the SDF, circles identify the censored data.

Kaplan Meier Result 7  

Then, we can compare the two groups. First, a series of tests is displayed in a table (Log-rank, Wilcoxon, Tarone-Ware). From the results we can see that the difference between the two survivor functions is very significant.

Kaplan Meier Result 8  

Last, the comparison of the two survival curves allows us to conclude to confirm that the drug significantly improves survival time of patients.

Kaplan Meier Result 9