An implementation of popular evaluation metrics that are commonly used in survival prediction including Concordance Index, Brier Score, Integrated Brier Score, Integrated Square Error, Integrated Absolute Error and Mean Absolute Error. For a detailed information, see (Ishwaran H, Kogalur UB, Blackstone EH and Lauer MS (2008) doi:10.1214/08-AOAS169) and (Moradian H, Larocque D and Bellavance F (2017) doi:10.1007/s10985-016-9372-1) for different evaluation metrics.
You can install the released version of SurvMetrics from CRAN with:
install.packages("SurvMetrics")
or Install devtools and build the development version by:
install.packages("devtools", repos = "https://cloud.r-project.org/")
::install_github("skyee1/SurvMetrics") devtools
This is a basic example which shows you how to solve a common problem:
library(SurvMetrics)
library(survival)
= c(1, 1, 2, 2, 2, 2, 2, 2)
time = c(0, 1, 1, 0, 1, 1, 0, 1)
status = c(2, 3, 3, 3, 4, 2, 4, 3)
predicted Cindex(Surv(time, status), predicted)
If you use SurvMetrics in your research and we would greatly appreciate if you could use the following:
@Manual{,
title = {SurvMetrics: Predictive Evaluation Metrics in Survival Analysis},
author = {Hanpu Zhou and Xuewei Cheng and Sizheng Wang and Yi Zou and Hong Wang},
year = {2022},
note = {R package version 0.5.0},
url = {https://github.com/skyee1/SurvMetrics},
}