Predictive Evaluation Metrics in Survival Analysis

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) ) , (Moradian H, Larocque D and Bellavance F (2017) ), (Hanpu Zhou, Hong Wang, Sizheng Wang and Yi Zou (2023) ) for different evaluation metrics.


Description

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) , (Moradian H, Larocque D and Bellavance F (2017) doi:10.1007/s10985-016-9372-1), (Hanpu Zhou, Hong Wang, Sizheng Wang and Yi Zou (2023) doi:10.32614/rj-2023-009) for different evaluation metrics.

Installation

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/")
devtools::install_github("whcsu/SurvMetrics")

Example

This is a basic example which shows you how to solve a common problem:

library(SurvMetrics)
library(survival)
time = c(1,1,2,2,2,2,2,2)
status = c(0,1,1,0,1,1,0,1)
predicted = c(2,3,3,3,4,2,4,3)
Cindex(Surv(time,status),predicted)

Citation

If you use SurvMetrics in your research and we would greatly appreciate if you could use the following:

@article{RJ-2023-009,
  author = {Zhou, Hanpu and Wang*, Hong and Wang, Sizheng and Zou, Yi},
  title = {SurvMetrics: An R package for Predictive Evaluation Metrics in Survival Analysis},
  journal = {The R Journal},
  year = {2023},
  note = {https://rjournal.github.io/},
  volume = {14},
  issue = {4},
  issn = {2073-4859},
  pages = {252-263}
}

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SurvMetrics")

0.5.1 by Hong Wang, 2 years ago


https://github.com/whcsu/SurvMetrics


Browse source code at https://github.com/cran/SurvMetrics


Authors: Hanpu Zhou [aut] , Xuewei Cheng [aut] , Sizheng Wang [aut] , Yi Zou [aut] , Hong Wang [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports survminer, stats, survival, MASS, pec

Suggests knitr, rmarkdown, caret, ggplot2, ggpubr, randomForestSRC, testthat


Imported by fssg.

Suggested by aorsf.


See at CRAN