Skip to content

survPen

Multidimensional Penalized Splines for (Excess) Hazard Models, Relative Mortality Ratio Models and Marginal Intensity Models

v2.0.3 · Mar 20, 2026 · GPL-3 | file LICENSE

Description

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.

Downloads

3.1K

Last 30 days

2367th

9K

Last 90 days

27.3K

Last year

Trend: +1.1% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 30.9Mb
  sub-directories of 1Mb or more:
    doc    1.5Mb
    libs  28.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 31.1Mb
  sub-directories of 1Mb or more:
    doc    1.5Mb
    libs  29.0Mb

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 31.0Mb
  sub-directories of 1Mb or more:
    doc    1.5Mb
    libs  28.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 31.1Mb
  sub-directories of 1Mb or more:
    doc    1.5Mb
    libs  29.0Mb

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies statmod Rcpp truncAIPW rstpm2 survPen

Version History

updated 2.0.3 ← 2.0.2 diff Mar 20, 2026
new 2.0.2 Mar 10, 2026
updated 2.0.2 ← 2.0.1 diff Mar 7, 2025
updated 2.0.1 ← 2.0.0 diff Jan 20, 2025
updated 2.0.0 ← 1.6.0 diff Dec 1, 2024
updated 1.6.0 ← 1.5.2 diff Sep 13, 2023
updated 1.5.2 ← 1.5.1 diff Sep 10, 2021
updated 1.5.1 ← 1.5.0 diff Sep 24, 2020
updated 1.5.0 ← 1.3.0 diff May 24, 2020
updated 1.3.0 ← 1.2.0 diff Feb 2, 2020
updated 1.2.0 ← 1.1.0 diff Aug 28, 2019
updated 1.1.0 ← 1.0.1 diff May 1, 2019
updated 1.0.1 ← 1.0.0 diff Feb 28, 2019
new 1.0.0 Feb 26, 2019