Predictive Evaluation Metrics in Survival Analysis
Overview
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.
Update authors' emails.
Correct Some typos.
From NEWS.md in the release
Install
Health
ERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [5s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(SurvMetrics)
> Sys.setenv("OMP_THREAD_LIMIT" = 1)
> test_check("SurvMetrics")
randomForestSRC 3.9.0
Type rfsrc.news() to see new features, changes, and bug fixes.
Loading required package: prodlim
Saving _problems/test-Brier-43.R
Saving _problems/test-Cindex-70.R
Saving _problems/test-IAEISE-13.R
Saving _problems/test-IBS-13.R
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 38 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-Brier.R:43:3'): Brier ──────────────────────────────────────────
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─testthat::expect_type(Brier(coxfit, test_data), "double") at test-Brier.R:43:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo
...[truncated]...
ictSurvProb(coxfit, test_data, distime) at test-IAEISE.R:13:3
2. └─pec:::predictSurvProb.coxph(coxfit, test_data, distime)
3. └─riskRegression::predictCox(...)
4. └─riskRegression::coxVariableName(object, model.frame = object.modelFrame)
5. └─stats::delete.response(...)
6. └─stats (local) off(a$specials[[i]])
── Error ('test-IBS.R:13:3'): IBS ──────────────────────────────────────────────
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─pec::predictSurvProb(coxfit, test_data, distime) at test-IBS.R:13:3
2. └─pec:::predictSurvProb.coxph(coxfit, test_data, distime)
3. └─riskRegression::predictCox(...)
4. └─riskRegression::coxVariableName(object, model.frame = object.modelFrame)
5. └─stats::delete.response(...)
6. └─stats (local) off(a$specials[[i]])
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 38 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-10-23
- ERROR12 OK, 1 ERROR2026-10-22
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
Show 5 earlier changesHide 5 earlier changes
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 12 (1 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 92%
- SurvMetrics-vignette HTML
Downloads
Repository
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/whcsu/survmetrics on 2026-10-22.
Dependencies
Installing SurvMetrics adds 136 packages (68 with compiled code, 120 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Previously maintained by Hanpu Zhou (0.3.5 to 0.5.0).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2025-02-05
- 0.5.1Latest
- archivedRemoved from CRAN2025-01-05email to the maintainer is undeliverable
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.5.0
- RR 4.2.0 released · 2022-04-22
- 0.4.52022-03-08 · diff ↗
- 0.4.0
- 0.3.52021-08-10
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-08-10
- Total releases
- 5 / 5 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 55 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("SurvMetrics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.