Skip to content

SurvMetrics

0.5.1Package record

Predictive Evaluation Metrics in Survival Analysis

1packages dependsuggested by 1
28.4Kdownloads / year
74.8%test coverage
12/13flavors OK

Overview

About

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.

Changes in 0.5.1

Update authors' emails.

Correct Some typos.

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
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

CRAN check page ↗

Slowest check: 3.5 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.5.1
READMEYes · 132 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 0.5.1Citation fileNoWebsitenot declared in DESCRIPTION
Description cites an R Journal article
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%
Vignettes (1)

Downloads

28.4K
CRAN downloads in the past year
Rank #2,566 · ~78/day · ~2.4K/mo
Daily download trend is not available in this view yet.
2.1K30 days
6.2K90 days
28.4K1 year
Compare downloads with other packages →
Also on92 r2u1 autocran888 conda_forge

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2025-01-31
Responsiveness
not measured
PracticesBeta

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.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
Imports (5)
survminerstatssurvivalMASSpec
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Author, Maintainer since 0.5.1 (2025)
Author

Previously maintained by Hanpu Zhou (0.3.5 to 0.5.0).

Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2025-02-05
  • 0.5.1Latest
    record
    2025-02-05 · current release · diff ↗ ·
    removed 1 export
    predictSurvProb2survreg
  • archivedRemoved from CRAN
    2025-01-05
    email to the maintainer is undeliverable
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5.0
    record
    2022-09-03 · diff ↗ ·
    added 1 export
    predictSurvProb2survreg
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.5
    record
    2022-03-08 · diff ↗
  • 0.4.0
    record
    2022-01-07 · diff ↗ ·
    added 1 export
    CindexCR
  • 0.3.5
    record
    2021-08-10
  • R
    R 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")
Wang, H., Cheng, X., Wang, S., Zhou, H., & Zou, Y. (2025). SurvMetrics: Predictive Evaluation Metrics in Survival Analysis (Version 0.5.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for SurvMetrics version 0.5.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy