Skip to content

survPen

2.0.5

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

2packages depend
35.3Kdownloads / year
83.7%test coverage
13/13checks pass

Overview

About
Maintained by Mathieu FauvernierFirst published 2019-02-2715 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 8.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.16
83.7%
Coverage · measured lines
91%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-06-07
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
100%
Return-value docs
100%
References docs
13%

Downloads

35.3K
CRAN downloads in the past year
Rank #2,327 · ~97/day · ~2.9K/mo
Daily download trend is not available in this view yet.
1.4K30 days
9.2K90 days
35.3K1 year
Compare downloads with other packages →
Also on519 r2u

Repository

Repository
12Stars
1Forks
1Open issues
0Open PRs
5Releases
244Commits
3Contributors
License GPL-3.0 · 244 commits · Last activity 2026-03-25 · 0% stars, 30d

Stars over time

2024-11-26 · 112026-07-07 · 12

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/fauvernierma/survpen on 2026-07-30.

Continuous integration (2)
Travis CIAppVeyor
Docs source (1)
README.Rmd
Governance and community (1)
Support guide
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
Imports (3)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author · added in 1.1.0
Author · added in 1.1.0
Contributors (3)
Contributor · added in 1.1.0
Contributor · added in 2.0.0
Contributor · added in 1.1.0
Package Timeline

15 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.0.5Latest
    2026-06-09 · current release · diff ↗
  • 2.0.4
    2026-05-09 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.3
    2026-03-20 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.2
    2025-03-08 · diff ↗
  • 2.0.1
    2025-01-21 · diff ↗
  • 2.0.0
    2024-12-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.0
    2023-09-14 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.5.2
    2021-09-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.5.1
    2020-09-25 · diff ↗
  • 1.5.0
    2020-05-25 · diff ↗
Show 8 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.0
    2020-02-03 · diff ↗
  • 1.2.0
    2019-08-29 · diff ↗
  • 1.1.0
    2019-05-02 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.1
    2019-03-01 · diff ↗
  • 1.0.0
    2019-02-27
  • R
    R 3.5.0 released · 2018-04-23

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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →