Keywords
survival, quantile survival, landmark, competing risk
This article is included in the RPackage gateway.
survival, quantile survival, landmark, competing risk
Figures 1, 3 and 4 have been updated to illustrate standard survival analysis, quantile survival analysis, test for proportional hazards, and selection of a cut point for a continuous variable in a single example.
See the authors' detailed response to the review by Gang Han
See the authors' detailed response to the review by Seon-Young Kim
Kaplan-Meier (KM) estimates and the Cox Proportional Hazards model have gained huge popularity among clinicians when depicting survival trends and in identifying prognostic biomarkers in cancer research. There is a range of commercial software (SAS, STATA, SPSS, PRISM) available for researchers to carry out survival analysis. However, these programs have several disadvantages; commercial software is proprietary and involves restricted usage with rigid outputs, which cannot be changed easily. Open source software such as R is gaining popularity, but the user needs to learn programming skills, which may be very time consuming for clinicians and biomedical researchers with limited programming exposure.
Standard survival analysis involves a single cause of failure. However, in other cases, clinicians may encounter many other causes of failure in addition to a specific cause of interest. In such cases, a competing risk analysis needs to be carried out, where an individual is exposed to two or more causes of failure but its eventual failure is due to only one cause. While several packages are available to conduct competing risk survival analysis in R, making the right choice presents another layer of confusion to the user.
As opposed to traditional KM or Cox regression analysis, typically a risk factor measured at baseline is examined for its association with survival thereafter. During follow-up, however, things may have changes, such that either the effect of a fixed baseline risk factor may vary over time, resulting in a weakening or strengthening of associations over time or the risk factor itself may vary over time. In the former case, such as effect is often seen in what appears to be significant differences in survival, not necessarily overall and among all survival times, but early on or at later survival times. We address such time-dependent effects on survival by creating two additional tools, one for landmark1 and another for quantile survival analysis2,3. As an example, the user may want to study the effect of chemotherapy on a specific cancer population and thus divides the data into a responder vs a non-responder group. The issue with this approach is that the responder cannot be deemed one, unless they survive until the time of response. In addition, being in the responder group gives them an unfair survival advantage leading to an immortal time bias. To overcome these issues, the investigator may need to perform a landmark analysis by removing the patients with an event (or censored) before the landmark time from the analysis.
Most tools are available as separate packages. As an alternative, CASAS provides a comprehensive survival analysis suite of tools commonly encountered in cancer research. By providing a GUI interface, the user can readily perform any number of these analyses by simply uploading their data and selecting the variables relevant to the analysis.
In summary, CASAS suite of tools is a one-stop shop for conducting some of the most common survival analyses in cancer research without requiring any prior programming knowledge. It is a web-based application that, as a single tool, can carry out KM plot, univariate hazard ratio, landmark analysis, quantile survival analysis and competing risk analysis. It allows a user to combine results from various studies or cancer types as well.
Standard survival analysis uses the TCGA BRCA data for 553 patients that underwent radiotherapy4 and uses the ‘survminer’ package to display the KM plots. Either categorical or continuous variables can be used for stratification. Continuous variables can be dichomotimized by either the 25th, 50th, 75th percentile or an optimal cut point. A log-rank test is used to estimate the overall differences between the survival curves (Figure 1). A single overall survival curve without stratification can be plotted using the ‘All patients’ option. The user can also test for validity of the proportional hazards assumption (a non-significant Schoenfeld residual test p-value based on the cox.zph function in the ‘survival’ package) in the univariate survival analysis tab.
The interface shows an example KM plot using TCGA BRCA data with patients who received radiotherapy4. The left side comprises a user menu and the right includes the result plots/tables. The KM plot is interactive and will change depending on the categorical variable selected. Continuous data can be divided using 25th percentile, 50th percentile, and 75th percentile or the user may opt to use an optimal cut point based on martingale residuals using the ‘survMisc’ package (also available with plot in a separate tab). The user could alternatively choose the “All patients” drop down. If the user selects the ‘All patients’ dropdown, a single KM curve is created using all the data instead of two separate KM curves by the categorical variable of interest. User could also choose to output the number of patients at risk. Univariate survival association analysis based on cox proportional hazards model, can be output by entering one variable in the model each time. Multiple variables can be selected to generate the output table. In addition, the user can also test for the proportional hazard assumption by selecting “Test for Proportional Hazards Assumption” as “Yes”. An additional column with the p-value for Proportional Hazards Assumption will be displayed as the rightmost column.
Competing risk survival analysis is based on Fine and Gray’s Model5, using the ‘cmprsk’ package in R. To illustrate, 35 AML/ALL patient’s data who underwent Hematopoietic stem cell transplantation (HSCT) affected by either AML or ALL6 are used. Cumulative incidence plot was plotted using CumIncidence.R function available in the package. This tool also displays the Gray’s p-value based on the competing risk code (Figure 2). Either categorical or continuous group variables/‘All patients’ can be used.
This tab includes competing risk analysis using the BMT data (http://www.stat.unipg.it/luca/R/). The left panel includes options to select variables for univariate survival association analysis based on Fine and Gray’s model, and includes options to select variables for cumulative incidence function analysis. For the Univariate Analysis, the user chooses variable of interest to enter into the analysis as well as the event and the censor code. To generate a Cumulative Incidence Function (CIF) plot and table, the user can choose either a categorical variable to compare or ‘All Patients’ (Like in Figure 1). Users can also select the appropriate time unit based on the data and the time points of interest, where applicable. Censor code can also be specified. The univariate result table or plot is displayed on the right panel.
Landmark analysis is based on a user input landmark time. Stanford Heart transplant dataset is used7. The tool generates an overall KM plot and a landmark KM plot with log rank test p-values (Figure 3). The user can also opt for a CI curve instead of a KM plot and allows similar categorical/continuous variable inputs.
This tab includes landmark analysis using the Stanford heart transplant data7. The left panel includes options to select variables for landmark analysis and the landmark time. The program generates a new landmark dataset to create either KM/CIF plots on the right panel. Users can also select the appropriate time unit based on the data.
Quantile survival analysis is based on method developed by 2,3, implemented in the ‘cequre’ package in R. The example data used is the 553 patient Expression with Clinical data for TCGA – BRCA patients given radiotherapy4. Survival time difference between the dichotomized continuous or categorical variable will be estimated with 95% CI for each quantile (Figure 4). A forest plot to represent quantile wise differences between the means and the overall differences is also provided as output.
The quantile regression tab shows three plots based on the same data used in Figure 1. The first is the overall KM plot with number at risk table for overall survival and log rank test p-value. The second is the survival time difference with 95% CI between two dichotomized groups at the 10 quantiles Q1 to Q10 (defined as 10 percentile to 100 percentile by 10 percentile at mean survival time among all patients). The third plot is the summary using forest plot for the survival time difference at 10 quantiles. The overall in forest plot corresponds to the transformed HR and 95% CI for overall survival (log [1/HR]).
The CASAS software is written in R and tested using version 3.3.0. The Interactive KM, CIF plots and data tables are made visible through a web browser using the shiny R package (www.rstudio.com/shiny).
Using a windows 7 Enterprise SP1 PC with a 32.0 GB RAM and an 3.30 GHz Intel® Xeon® Processor E5 Family, for 553 TCGA BRCA patients who received radiotherapy4, it took 2.26 s to create an interactive KM plot and 6.52 s to generate quantile analysis plots. Stanford heart transplant data7 for landmark survival analysis generated the KM plots in about 1.10s. For data of 35 patients who underwent Hematopoietic stem cell transplantation (HSCT) affected by either AML or ALL6, it took 2.66s to display the CIF plot. The developmental repository is available at https://github.com/manalirupji/CASAS/.
Archived source code as at the time of publication is available at: http://doi.org/10.5281/zenodo.8328458.
CASAS is a suite of tools that allows a user to conduct various types of survival analysis through an interactive application in R. We show by example, various types of cancer survival analyses that can be performed based on the questions of interest. Our tool will serve as a platform for many physicians and researchers to conduct preliminary analyses before heading to statisticians to conduct advanced analyses.
The CASAS web tool (http://shinygispa.winship.emory.edu/CASAS/) includes preprocessed example data under each tab. The user could use the example data or could upload a dataset of their choice in the same format as the example data. The tool will work best with data input as a .txt or .csv file. Time variable can be input in days, months or years and the appropriate time unit selection can be made. This tool accepts censor variables in various formats, for example, character annotation such as Dead/Alive, or integer variable 0/1, etc. The tool may throw errors if there are missing data within the censor variables but it can handle missing data left blank for the cohort variables. Use of any other characters for missing data may cause the program to throw errors.
For landmark analysis, data from 103 patients on the waitlist for Stanford Heart transplant program as available in the survival package is used7. The data can be accessed in R using data(jasa). For both Kaplan Meier survival analysis and quantile survival analysis, Level 3 RNASeqV2 Breast Cancer (BRCA) data was downloaded from the TCGA data portal4. 553 patients that received radiotherapy and had survival information were used. Gene expression data for a specific biomarker gene was log2 transformed. The user has the choice to divide the data based on either the twenty-fifth percentile (set as default) or the fiftieth or the seventy-fifth, or an optimal cut point based on the martingale residuals. Similarly, for competing risk analysis, the user could choose the example data or upload their own. The example data consists of 35 patients with acute leukemia who underwent Hematopoietic stem cell transplantation (HSCT) affected by either AML or ALL6 (http://www.stat.unipg.it/luca/R).
The developmental repository is available at https://github.com/manalirupji/CASAS/.
Archived source code as at the time of publication: http://doi.org/10.5281/zenodo.8328458
License: CASAS is available under the GNU public license (GPL-3).
Research reported in this publication was supported in part by the Biostatistics and Bioinformatics Shared Resource of Winship Cancer Institute of Emory University and NIH/NCI under award number P30CA138292. The content is solely the responsibility of the authors and does not represent the official views of the National Institutes of Health.
Views | Downloads | |
---|---|---|
F1000Research | - | - |
PubMed Central
Data from PMC are received and updated monthly.
|
- | - |
Is the rationale for developing the new software tool clearly explained?
Yes
Is the description of the software tool technically sound?
Yes
Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?
Yes
Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?
Yes
Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?
Yes
References
1. Kim SK, Hwan Kim J, Yun SJ, Kim WJ, et al.: APPEX: analysis platform for the identification of prognostic gene expression signatures in cancer.Bioinformatics. 2014; 30 (22): 3284-6 PubMed Abstract | Publisher Full TextCompeting Interests: No competing interests were disclosed.
Competing Interests: No competing interests were disclosed.
Is the rationale for developing the new software tool clearly explained?
Yes
Is the description of the software tool technically sound?
Yes
Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?
No
Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?
No
Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?
Yes
Competing Interests: No competing interests were disclosed.
Alongside their report, reviewers assign a status to the article:
Invited Reviewers | ||
---|---|---|
1 | 2 | |
Version 2 (revision) 31 Jul 17 |
read | read |
Version 1 15 Jun 17 |
read |
Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list:
Sign up for content alerts and receive a weekly or monthly email with all newly published articles
Already registered? Sign in
The email address should be the one you originally registered with F1000.
You registered with F1000 via Google, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Google account password, please click here.
You registered with F1000 via Facebook, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Facebook account password, please click here.
If your email address is registered with us, we will email you instructions to reset your password.
If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance.
Comments on this article Comments (0)