Deep Neural Networks for Survival Analysis with R 'torch'
Overview
Provides deep learning models for right-censored survival data using the 'torch' backend. Supports multiple loss functions, including Cox partial likelihood, L2-penalized Cox, time-dependent Cox, and accelerated failure time (AFT) loss. Offers a formula-based interface, built-in support for cross-validation, hyperparameter tuning, survival curve plotting, and evaluation metrics such as the C-index, Brier score, and integrated Brier score. For methodological details, see Kvamme et al. (2019) https://www.jmlr.org/papers/v20/18-424.html. The package is described in El Badisy (2026) doi:10.32614/RJ-2026-008.
CRAN resubmission update
- Milestone release: the package's methods paper is now published in The R Journal (El Badisy 2026, <doi:10.32614/RJ-2026-008>), cited in
DESCRIPTION'sDescriptionfield and a matchinginst/CITATIONfile. - Standardized the maintainer's family-name casing to "El Badisy" (title case) in
Authors@R, matching the rest of the package suite. Daniel Falbel remains listed as a contributor (ctb).
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
- Help pages
- 18 (2 internal)
- Examples that run
- 0%9 only when donttest examples are enabled (R CMD check --as-cran) · 1 hold no code
- Exported functions with examples
- 50%
- 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
- 80
- 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
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/ielbadisy/survdnn on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing survdnn adds 50 packages (26 with compiled code, 38 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, torch 1.9 MB.
Code & Tests
People & History
Package metadata
- First published
- 2025-07-22
- Total releases
- 6 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 42 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("survdnn")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2026-008.
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.