Explainable Machine Learning in Survival Analysis
Overview
Survival analysis models are commonly used in medicine and other areas. Many of them are too complex to be interpreted by human. Exploration and explanation is needed, but standard methods do not give a broad enough picture. 'survex' provides easy-to-apply methods for explaining survival models, both complex black-boxes and simpler statistical models. They include methods specific to survival analysis such as SurvSHAP(t) introduced in Krzyzinski et al., (2023) doi:10.1016/j.knosys.2022.110234, SurvLIME described in Kovalev et al., (2020) doi:10.1016/j.knosys.2020.106164 as well as extensions of existing ones described in Biecek et al., (2021) doi:10.1201/9780429027192.
- added new
calculation_methodforsurv_shap()called"treeshap"that uses thetreeshappackage (#75) - enable to calculate SurvSHAP(t) explanations based on subsample of the explainer's data
- changed default kernel width in SurvLIME from sqrt(p * 0.75) to sqrt(p) * 0.75
- fixed error in SurvLIME when non-factor
categorical_variableswere provided
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 46 (6 internal)
- Examples that run
- 34%13 run in a plain check · 25 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 96%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 26
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/modeloriented/survex on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2024-06-15 · The repository has a site deploy workflow
pkgdown site last built 2024-06-15
Show all practicesHide 1 practice
Dependencies
Installing survex adds 94 packages (44 with compiled code, 92 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.2.0Latest
- 1.1.32023-09-06 · diff ↗ ·
added 4 exports
extract_predict_survshap, model_diagnostics, model_profile_2d, model_survshap - RR 4.3.0 released · 2023-04-21
- 1.0.02023-03-20 · diff ↗ ·
added 3 exports
set_theme_survex, theme_default_survex, theme_vertical_default_survex - 0.2.2
- 0.1.12022-09-05
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-05
- Total releases
- 5 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 810 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("survex")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.