survPen2.0.2 package

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

colSums2

colSums of a matrix

constraint

Sum-to-zero constraint

cor.var

Implementation of the corrected variance Vc

crs.FP

Penalty matrix constructor for cubic regression splines

crs

Bases for cubic regression splines (equivalent to "cr" in mgcv)

CumulHazard

Cumulative hazard (integral of hazard) only

deriv_R

Derivative of a Choleski factor

DerivCumulHazard

Cumulative hazard (integral of hazard) and its first and second deriva...

design.matrix

Design matrix for the model needed in Gauss-Legendre quadrature

grad_rho_mult

Gradient vector of LCV and LAML wrt rho (log smoothing parameters). Ve...

grad_rho

Gradient vector of LCV and LAML wrt rho (log smoothing parameters)

grapes-cross-grapes

Matrix cross-multiplication between two matrices

grapes-mult-grapes

Matrix multiplication between two matrices

grapes-vec-grapes

Matrix multiplication between a matrix and a vector

HazGL

Gauss-Legendre evaluations

Hess_rho_mult

Hessian matrix of LCV and LAML wrt rho (log smoothing parameters). Ver...

Hess_rho

Hessian matrix of LCV and LAML wrt rho (log smoothing parameters)

instr

Position of the nth occurrence of a string in another one

inv.repam

Reverses the initial reparameterization for stable evaluation of the l...

model.cons

Design and penalty matrices for the model

NR.beta

Inner Newton-Raphson algorithm for regression parameters estimation

NR.rho

Outer Newton-Raphson algorithm for smoothing parameters estimation via...

predict.survPen

Hazard and Survival prediction from fitted survPen model

predSNS

Prediction of grouped indicators : population (net) survival (PNS) and...

print.summary.survPen

print summary for a survPen fit

pwcst

Defining piecewise constant (excess) hazard in survPen formulae

rd

Defining random effects in survPen formulae

repam

Applies initial reparameterization for stable evaluation of the log de...

robust.var

Implementation of the robust variance Vr

smf

Defining smooths in survPen formulae

smooth.cons.integral

Design matrix of penalized splines in a smooth.spec object for Gauss-L...

smooth.cons

Design and penalty matrices of penalized splines in a smooth.spec obje...

smooth.spec

Covariates specified as penalized splines

splitmult

Split original dataset at specified times to fit a multiplicative mode...

summary.survPen

Summary for a survPen fit

survPen.fit

(Excess) hazard model with multidimensional penalized splines for give...

survPen

(Excess) hazard model with (multidimensional) penalized splines and in...

survPenObject

Fitted survPen object

tensor.in

tensor model matrix for two marginal bases

tensor.prod.S

Tensor product for penalty matrices

tensor.prod.X

tensor model matrix

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.

  • Maintainer: Mathieu Fauvernier
  • License: GPL-3 | file LICENSE
  • Last published: 2025-03-08