Description
High-Level Interface for Survival Analysis and Associated Plots.
Description
A high-level interface to perform survival analysis, including Kaplan-Meier analysis and log-rank tests and Cox regression. Aims at providing a clear and elegant syntax, support for use in a pipeline, structured output and plotting. Builds upon the 'survminer' package for Kaplan-Meier plots and provides a customizable implementation for forest plots. Kaplan & Meier (1958) <doi:10.1080/01621459.1958.10501452> Cox (1972) <JSTOR:2985181> Peto & Peto (1972) <JSTOR:2344317>.
README.md
Purpose
The goal of survivalAnalysis is to provide a high-level, elegant interface for the most frequent tasks of survival analysis, with a focus on the needs of clinical oncology. The syntax follows the tidyverse philosophy and is made to be used in a pipeline.
Installation
Install from CRAN:
install.packages("survivalAnalysis")
Or install the latest git version from bitbucket:
devtools::install_bitbucket("mwiesweg/survivalAnalysis")
Components
The following areas are covered:
- Univariate analysis
- Descriptive statistics
- Log-rank test
- Pair-wise comparisons
- Multivariate analysis / Cox regression
- Kaplan-Meier plots based on survminer
- Ready-to-use plot by passing the univariate analysis result
- High-level support for grids of KM plots
- Forest plots based on ggplot2
- Easy creation by passing the multivariate analysis result, or multiple univariate analysis results
- Highly customizable
Getting Started
This package comes with two vignettes, which guide you through all core functionality and are recommended to get started.