Multidimensional Penalized Splines for (Excess) Hazard Models, Relative Mortality Ratio Models and Marginal Intensity Models
Overview
Fits (excess) hazard, relative mortality ratio or marginal intensity models with multidimensional penalized splines allowing for time-dependent effects, non-linear effects and interactions between several continuous covariates. In survival and net survival analysis, in addition to modelling the effect of time (via the baseline hazard), one has often to deal with several continuous covariates and model their functional forms, their time-dependent effects, and their interactions. Model specification becomes therefore a complex problem and penalized regression splines represent an appealing solution to that problem as splines offer the required flexibility while penalization limits overfitting issues. Current implementations of penalized survival models can be slow or unstable and sometimes lack some key features like taking into account expected mortality to provide net survival and excess hazard estimates. In contrast, survPen provides an automated, fast, and stable implementation (thanks to explicit calculation of the derivatives of the likelihood) and offers a unified framework for multidimensional penalized hazard and excess hazard models. Later versions (>2.0.0) include penalized models for relative mortality ratio, and marginal intensity in recurrent event setting. survPen may be of interest to those who 1) analyse any kind of time-to-event data: mortality, disease relapse, machinery breakdown, unemployment, etc 2) wish to describe the associated hazard and to understand which predictors impact its dynamics, 3) wish to model the relative mortality ratio between a cohort and a reference population, 4) wish to describe the marginal intensity for recurrent event data. See Fauvernier et al. (2019a) doi:10.21105/joss.01434 for an overview of the package and Fauvernier et al. (2019b) doi:10.1111/rssc.12368 for the method.
Changes:
- The multiplicative model used as an illustration in the vignette had an incorrect specification. The t0 argument was lacking and therefore the start-stop nature of the data was not taken into account
- Description of the output dataset of splitmult function added in the vignette
- Description of the dataset HeartFailure added in the vignette
From NEWS 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
- NOTE12 OK, 1 NOTE2026-06-07
Show 4 earlier changesHide 4 earlier changes
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 45
- Examples that run
- 96%23 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 65%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 48
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/fauvernierma/survpen on 2026-10-21.
GitHub Pages site last deployed 2026-03-25
Dependencies
Installing survPen adds 3 packages (3 with compiled code, 3.6 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, statmod 91 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.0.5Latest
- 2.0.42026-05-09 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 2.0.32026-03-20 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.0.22025-03-08 · diff ↗
- 2.0.12025-01-21 · diff ↗
- 2.0.02024-12-02 · diff ↗ ·
added 7 exports
CumulHazard, DerivCumulHazard, HazGL, Hess_rho_mult, grad_rho_mult, predSNS, splitmult - RR 4.4.0 released · 2024-04-24
- 1.6.0
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.5.22021-09-11 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.5.12020-09-25 · diff ↗
- 1.5.0
Show 8 earlier eventsHide 8 earlier events
Package metadata
- First published
- 2019-02-27
- Total releases
- 15 / 7 yrs
- License
- GPL-3 | file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 148 KB / 4 files
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("survPen")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.01434.
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.